How to refresh Access Token on Spotify SDK for Android?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 05:23:08

You need to use the Authorization Code flow from the Spotify Web API to obtain a refresh token that you can use to obtain a new access token when yours expires.

For that you need to have a web service with which you communicate from the Android app.

There is more information on this on https://github.com/spotify/android-sdk/issues/47

In case anyone else is having trouble with this issue, I made a gist you can use to stand up a free cloud function and handle this process:

https://gist.github.com/rldaulton/8b87216715d3cea828b5a9b27e300a3f

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!