Skip to content

issue #71 - fixed (show_Dialog)#72

Open
Krisolut wants to merge 1 commit intoplamere:masterfrom
Krisolut:fix/show-dialog-after-logout
Open

issue #71 - fixed (show_Dialog)#72
Krisolut wants to merge 1 commit intoplamere:masterfrom
Krisolut:fix/show-dialog-after-logout

Conversation

@Krisolut
Copy link
Copy Markdown

Bug Description
After logging in with a Google account and then logging out, the login dialog is skipped on the next login attempt. The user is automatically re-authenticated with the previously used Google account, making it impossible to switch to email/password login.

Steps to Reproduce

  1. Open the app and click "Login with Spotify"
  2. On the Spotify login page, choose "Continue with Google"
  3. Complete the login
  4. Click "Logout"
  5. Click "Login with Spotify" again

Expected Behavior
The Spotify login dialog appears, allowing the user to choose between Google and email/password login.

Actual Behavior
The Spotify login dialog is skipped entirely. The user is silently re-authenticated via their still-active Google session.

Root Cause
The Spotify OAuth authorization URL was built without the show_dialog parameter. When omitted, Spotify skips the login dialog if an active session exists. After logout, only the local tokens were cleared — the Spotify/Google session remained active on accounts.spotify.com.
Changes

auth.js — added showDialog parameter to redirectToSpotifyAuth() and show_dialog to the OAuth URL
auth.js — clearTokens() now sets a force_show_dialog flag in localStorage
views/landing.js — login button reads the flag and passes it to redirectToSpotifyAuth()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant