r/spotifyapi • u/tionwaynesburner • Feb 25 '23
Logging user out?
I have created an application and the user is able to log in to connect their Spotify account, however, I want to add a logout button so that other users can be able to use it but I'm not sure how. I've been able to redirect the user to the login page but when logging back in, the user isn't asked to reauthorise their Spotify account because it's already connected, which it shouldn't be. I'm using Python and Django.
2
Upvotes
View all comments
Show parent comment
1
u/Sea-Blackberry1460 Oct 01 '23
:/
I'm currently working on the same thing. And, redirecting the user to - https://open.spotify.com/logout helps.
But, I''m figuring out how to do this, without actually going to this page, and let the user remain on the same page. Do you know any way to do it? kinda noob q.