techwithtim/Music-Controller-Web-App-Tutorial

No redirect after Spotify login

aHardReset opened this issue · 1 comments

After a successful login with Spotify, the app doesn't redirect to the room, it redirects to the homepage with a new Django session. so the information is lost because there is no room code with the new session.
I downloaded the code and use Tutorial 17 folder.

In Spotify and in Django we register
REDIRECT_URI = "http://127.0.0.1:8000/spotify/redirect"
And I was testing with 'localhost:8000'

Different cookies, different sessions, avoid it.

https://stackoverflow.com/questions/63184337/why-is-my-session-variable-not-persisting-after-server-restart-in-django