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

查看:199
本文介绍了如何增加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天全站免登陆