Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Axios call to complete Authorization Code Flow not working

Axios call to complete Authorization Code Flow not working

Hello, 

 

I am working on a small project, and I am attempting to implement Authorization Code Flow Authentication. I am successfully obtaining the 'code', but my Axios call to obtain the access token is not working (400 error). I am sure it is because of the format of my Axios call, but I cannot find any good resources for how to do this  correctly (almost everybody does the Client Credential flow, which doesn't allow you to obtain user information, correct?). 

 

If anybody can give me advice on how to fix this code or otherwise accomplish user authentication so that I may obtain a Spotify user's top tracks, albums, etc, I would greatly appreciate it! 

 

Thanks. 

spotifyauth.png
Reply
0 Replies

Suggested posts

Staff
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…

Staff
ModeratorStaff / Moderator/ 3 years ago  in Social & Random

Type a product name