Announcements

Help Wizard

Step 1

NEXT STEP

How to Logout? Is it possible?

How to Logout? Is it possible?

I’m working on an application using the Spotify API, and I’ve encountered an issue when trying to switch between different user accounts during the OAuth login process.

Here’s the scenario:

  1. I successfully logged into Account A, went through the OAuth flow, and everything worked perfectly.

  2. After logging out, I cleared both the cookies and the cache file (which stores the access token).

  3. When I attempted to log into Account B using the same OAuth flow and redirect URI, I get a 403 Forbidden error when trying to access the /me endpoint.

 

I’ve confirmed that both accounts have the same permissions and the same OAuth scopes. I’ve also checked the Spotify Developer Dashboard settings to ensure they are configured properly.

My questions are:

  1. Is it possible to switch between different accounts in a single session? What is the correct way to log out of an account and fully reset the OAuth session so that a new login can happen for another user?

  2. Do you need to clear any specific cookies or cache files to reset the session when switching accounts?

  3. Is there any potential reason why I’m seeing the 403 Forbidden error when trying to use a different account, even though the scopes and permissions are the same?

If anyone has experience with handling multiple accounts in the same application or has encountered this issue before, I’d appreciate any insights or suggestions.

Thank you!

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random