
If you want to log in with a different account, then set show_dialog to True in SpotifyOAuth.init.Īnd if I withdraw my authorization, it raises an error, although the user logged in with his account If, when you open the authorization URL, you are immediately redirected without being given a change to log in to your account, then it is because you are already logged in to your Spotify account on your browser. Is this cache file the same for everyone that uses your app? If so then it probably contains your authorization information, and this is the reason that everyone is seeing the stats for your account. The user that the instance of Spotify returned by get_client is authorized for is which ever one logs in to their Spotify account in the browser, unless the authorization information is already stored in a cache file. It is this line that is authorizing your app, not the one above it. The way that spotipy works is that it will automatically start the authorization process for you when you make a call to an endpoint, such as, if you are not authorized yet. If you don't retain the authorization code that get_auth_response returns, then calling it is completely pointless. This method only performs the first step of the authorization process you need to pass the authorization code that it returns into SpotifyOAuth.get_access_token to complete the authorization process.

Auth.get_auth_response(open_browser=False)
