Making a playlist react 401

Spotify Playlist generation React

Hello,

I am struggling to create a playlist on my React App. I added the scopes required, but I still get a 401 error whenever I try to make a playlist, despite things like search and getting audio features continuing to work.

 

Here is my code: 

airborm_1-1661458273437.png

 

 

Child Item
Child Item
Child Item

Accepted answers

All comments

Can you please share code of where you get the token form? I don't think the mistake is interested the code you already shared.

I didn't include Client ID but in summary I have a "login" link that authorizes the user when clicked and has the required scope, then I get the token from the hash

Child Item
Child Item