Announcements
From 28th September 2026, Community private messages will no longer be available. If you have any private messages you'd like to keep, please save or copy them using these steps before this date. Thank you.

Help Wizard

Step 1

NEXT STEP

WebAPI Authorization Code with PKCE 400 Error

WebAPI Authorization Code with PKCE 400 Error

Hello all,

 

I am working on a small project to request player information from the WebAPI, however I am having a lot of issues with authentication. 

 

My Question or Issue

I have been following https://developer.spotify.com/documentation/web-api/tutorials/code-pkce-flow PKCE authentication guide as I am doing a single webpage application. 

 

I have followed the guide and even copied the code directly, I have also tried using the GitHub example authorization_code_pkce. However, no matter what I do I get a bad request: 400 when requesting the access token. 

 

I cannot see from any of the documentation where the formation error is coming from in the api/token POST request. Can any offer any guidance?

 

Is the previously provided documentation and guides out of date considering the recent API changes?

 

Thanks

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/ 5 years ago  in Social & Random