Refreshing access token automatically?
I’m building a dashboard using Next, Auth js and the Spotify API. I’ve implemented the OAuth flow and the user connects with the Spotify account correctly.
Spotify after the authentication process gives you an access token and a refresh token, because the access token expires after 1 hour.
You can use the refresh token to get another access token and I would like to do that automatically, but for some reasons it doesn’t work.