Announcements

Help Wizard

Step 1

NEXT STEP

Spotify Web Api Playback Refresh Token problem

Spotify Web Api Playback Refresh Token problem

Plan

Premium

Country

DK

Device

Chrome

Operating System

(Window)

 

My Question or Issue

Hello all.

I have this Blazor Server app that is playing (in a browser) using the Spotify Web Player. I can get authorized and I get a Token and a RefreshToken and I can successfully use this to play a track. The refreshToken is saved for later.

The problems start when an hour has passed and the token is not valid anymore. I have however supplied a new refreshed token to the routine that plays a track.

I call https://accounts.spotify.com/api/token with the saved RefreshToken and get successfully back a Token. This is used in the Play routine that play a track and this is successfull. But when the hour is up I get errors.

The original token starts with BQAN8OXE .... but the refreshed one gets

BQDPgMvMQ (I doubt that this is significiant) 

Does anybody have a clue of what goes wrong here or perhaps example where refresh token is in use.

 

Kind regards

 

Martin

 

Reply
0 Replies

Suggested posts