Hi all!
I’m having a bit of trouble with the Jamming project, my search and add playlist buttons do not seem to be working properly. The first time i use them it takes me to the page to log into spotify etc but afterwards using the buttons just refreshes the page, gives me a 401 GET error on the console, and doesnt provide any search results:
XHR GEThttps://api.spotify.com/v1/search?type=track&q=the beatles [HTTP/3 401 Unauthorized 58ms]
Ive followed along with the video instructions at the relevant stages but I don’t appear to have done anything wrong.
Any help would be greatly appreciated! I’ll include the code from searchBar.js, searchResults.js, Spotify.js, and app.js (apologies for the screenshots, for some reason the forums wont let me upload code.
