Hey :)
i have some problems with the refresh tokens. Not sure if it's a bug or just me doing something wrong.
After about one hour form when I started the client I get a "access token expired" error message from the spotify api.
I'm creating the spotify client like this: (pseudo code)
I also tried to pass code directly without manually requesting a refresh token from the spotify api before.
The client acctually stores the the correct refreshToken in client.refreshMeta.refreshToken, but it doesn't automatically requests a new token, when needed apparently.
Hey :) i have some problems with the refresh tokens. Not sure if it's a bug or just me doing something wrong. After about one hour form when I started the client I get a "access token expired" error message from the spotify api. I'm creating the spotify client like this: (pseudo code)
I also tried to pass
code
directly without manually requesting a refresh token from the spotify api before. The client acctually stores the the correct refreshToken in client.refreshMeta.refreshToken, but it doesn't automatically requests a new token, when needed apparently.Originally posted by @adb-sh in https://github.com/spotify-api/spotify-api.js/discussions/14#discussioncomment-3826198