jzheng2017 / spotify-web-api-wrapper

Spotify API wrapper for Java
MIT License
50 stars 32 forks source link

Add automatic access token refreshment when expired #1

Open jzheng2017 opened 3 years ago

jzheng2017 commented 3 years ago

Is your feature request related to a problem? Please describe. Currently when the access token expires the API can no longer make any request to the Spotify Web API. There is no system in place that detects whether the access token has expired and refreshes the token when necessary.

The feature request is to implement a system that will refresh the access token automatically when expired using the already existing AuthorizationRefreshToken.

Describe the solution you'd like The system should be able to detect when the token has expired. When it has detected that the token has expired it will make a request to Spotify Authorization API for a new access token. When the new access token has been obtained it should update all services that use that token to make requests.

Describe alternatives you've considered None at the moment.

Additional context This feature should be implemented in SpotifyApi, or somewhere else if it is more fitting but should be well substantiated why it is done that way.

razorahul commented 10 months ago

Attempting issue #1

jzheng2017 commented 9 months ago

Attempting issue #1

Any update on the progress of this issue?

razorahul commented 9 months ago

@jzheng2017 Will update in next 2 days.

jzheng2017 commented 9 months ago

@jzheng2017 Will update in next 2 days.

I will remove you as assignee for now. If you have more update on the progress I will reassign you.