Spotify Auth problem
Kcin1993 opened this issue · 2 comments
It seems that Spotify start use the OAuth Token?
I found the app I build isn't work any more, either. The response is dead.
I also clone this project and run in local. The search response from this Repo is
App.jsx:23 GET https://api.spotify.com/v1/search?q=mars&type=artist&limit=1 401 (Unauthorized)
Hi, here's the response I left in a Q&A on the Udemy course:
"Yes, unfortunately this is a new issue.
Here's the steps I recommended on another Q&A.
https://www.udemy.com/react-js-and-redux-mastering-web-apps/learn/v4/questions/2376462
Please let me know if you find a great solution! I want to make an announcement as I expect this will be an issue going forward."
-->
"The Spotify API just updated this endpoint and you now need to specify an Authorization header as part of the get-request.
This will give it that token. It's quite a long process to get the header but here's a detailed tutorial from their documentation on how to get the token: https://developer.spotify.com/web-api/authorization-guide/#client_credentials_flow.
Also, if one of your priorities in this course is to learn redux, I would recommend moving onto the next apps: reminderPro and goalCoach. They'll be about redux, and you can revisit musicMaster later.
Hope this helps!"
it's not a big deal.