Announcements

Help Wizard

Step 1

NEXT STEP

OAuth2 PKCE Token Exchange failed error

OAuth2 PKCE Token Exchange failed error

Hi, 

I have managed to successfully authenticate users via OAuth2 PKCE. I have added the list of test users via the developer dashboard as well.

Sometimes I get the 'token exchange failed' error, even while trying to authenticate a user who has been added to my test user list. The way I fix this is by deleting the app and making a new app on the dashboard and updating the client ID in my code. I don't want to keep doing this, is there any reason this keeps happening once in a while? Any fixes/ideas?

 

EDIT: I uploaded the code on my team's GitHub repository. My teammate tried cloning the repository and running the django server on his local machine. This is also throwing the 'Token Exchange Failed' error. His account is able to be authenticated on my machine, but the error shows up if my code is being run on any other machine.

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random