Hello,
I am reaching out to seek assistance regarding an issue I've been facing while attempting to create a playlist on Spotify. Unfortunately, I keep encountering a persistent 401 error, which indicates an authentication or authorization problem.
Here's a brief description of the issue:
I am using Reactjs and axios for my project and would appreciate any guidance or insights from anyone who has experienced a similar problem or has expertise with the Spotify API. If you have any suggestions, workarounds, or advice on how to overcome this 401 error and successfully create playlists on Spotify, your assistance would be highly appreciated.
Thank you in advance for your time!
P.S I have attached my code as well.
Best regards, Mondayy
No I used the Authorization code flow without the PKCE Flow. Do I need to do PKCE Flow?
That's a mistake from my side. I didn't know you didn't have to use the client secret in one case of the Authorization Code flow.
Because I couldn't fix it myself, I asked ChatGPT.
I don't see a client secret in your code, so did you implantaten the Authorization Code with PKCE Flow?