Skip to content

SpotifyPlaylistCreator: OAuth token not working after expiration

Flow

  • ask the user to authorize (browser)
  • get access and refresh token
  • access token expires after 1 hour
  • refresh tokens expire when the user revokes app acccess (therefore nearly never)
  • use refresh token to get new access token
  • returned token does not always send a new refresh token (since the last one is still valid)
  • new token info from spotify api that does not contain a request token will overwrite the .cache file and then the refresh token is missing the next day

https://github.com/spotify/web-api/issues/911

Edited by Robert Goldmann
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information