my app is logged in my personal account, how to log out the app

i created an app using the dashboard and i'm trying to use it using Spotipy (in Python),

but the app is logged in as my personal account. When i use the current_user() method, it shows my profile (whereas i used the client id and client secret from the dashboard).

 

I want to log in the app as an other account, how can i log out the app from my account and log in on the other account ?

Child Item
Child Item
Child Item

Accepted answers

All comments

Hello @vipe1375!

 

Thanks for coming to the Community. I'm not an expert with spotipy but I'll try to help you out. Is it possible that your authentication key was stored in a .cache file and this is what's causing you to be logged in with your account? To test this, can you try deleting cache files in your project folder? 

 

Also, from what I could find online, I read there's this show_dialog parameter that prompts you to log in with your account when opening the browser. Let me know if it's useful at all.

spotipy.Spotify(
		auth_manager=spotipy.SpotifyOAuth(
			client_id, client_secret, redirect_uri,
			scope=scope, cache_path=cachePath,
			username=username, show_dialog=True
		)
	)

 

Let me know how it goes 🙂

Child Item
Child Item