How To Fix 'error: Invalid_grant Invalid Authorization Code' When Asking For Reshresh_token From Spotify Api?
I'm trying to receive refresh_token for my Ionic app, I successfully receive access_token. I receive code (authorization_code or access_token) from endpoint https://accounts.spoti
Solution 1:
So after two days of trying I found this issue and after checking documentation I found where I was wrong. The thing is when you want to refresh token you need to send in body of POST request to /api/token endpoint code not access_token. In my case I was sending access_token. To receive code you should send same request to https://accounts.spotify.com/authorize endpoint but with parameter response_type=code
.
Post a Comment for "How To Fix 'error: Invalid_grant Invalid Authorization Code' When Asking For Reshresh_token From Spotify Api?"