zmb3 / spotify

A Go wrapper for the Spotify Web API
Apache License 2.0
1.34k stars 284 forks source link

How can I refresh the access token #141

Closed simonfrey closed 3 years ago

simonfrey commented 3 years ago

Executing a request with a saved oauth2 token I get the error

 The access token expired

This makes sense as I have to refresh the access token with a refresh token, but how can i do this with this SDK?

Thanks for you help!

simonfrey commented 3 years ago

FYI: I did not set the expiration timestamp. With that timestamp correctly set the SKD automatically refreshes the token