如何增加 Spotify 令牌的到期时间? [英] How Can I increase the expiry time of Spotify token?

查看:60
本文介绍了如何增加 Spotify 令牌的到期时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请建议我如何在使用 spotify Web API 获取数据时增加令牌到期时间 "https://accounts.spotify.com/api/token"

Please advice how can I increase token expiry time While fetching data using spotify web API "https://accounts.spotify.com/api/token"

推荐答案

访问令牌在一小时后过期.此到期时间由 Spotify 设置,客户端无法更改.

Access tokens expire after one hour. This expiry time is set on Spotify's side and can't be changed by the client.

如果您使用 授权码流程.(刷新令牌实际上永远有效,或者直到它被手动撤销.)

You can refresh an access token if you're retrieving it using the Authorization Code flow. (The refresh token is practically valid forever, or until it has been manually revoked.)

这篇关于如何增加 Spotify 令牌的到期时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆