Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[web] SignOut from Google Oauth does not clear the last authenticated account #1103

Open
davidsdearaujo opened this issue Dec 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@davidsdearaujo
Copy link

Describe the bug
After sign out from a Google Account and try to login with another Google account it authenticates with the last account and don't allow the user to select another one.

To Reproduce
Steps to reproduce the behavior:

  1. Login using Google OAuth: await supabase.auth.signInWithOAuth(OAuthProvider.google);
  2. Fill your google credentials;
  3. Sign out: supabase.auth.signOut(scope: SignOutScope.local)
  4. Login again: await supabase.auth.signInWithOAuth(OAuthProvider.google);
  5. The google authentication form is skipped and you are automatically logged in with the last account

Expected behavior
The user should have the ability to login with another account.
After you logout from a Google Account and try to login again you should be asked to fill the Google credentials again;

Version (please complete the following information):

├── supabase_flutter 2.8.1
│   ├── supabase 2.6.0
│   │   ├── functions_client 2.4.0
│   │   ├── gotrue 2.11.0
│   │   ├── postgrest 2.4.0
│   │   ├── realtime_client 2.4.0
│   │   ├── storage_client 2.2.0
@davidsdearaujo davidsdearaujo added the bug Something isn't working label Dec 20, 2024
@Vinzent03
Copy link
Collaborator

I think this is a duplicate of #1015 , because you have to sign out from the google package manually as well.

@davidsdearaujo
Copy link
Author

davidsdearaujo commented Dec 28, 2024

I called .signOut() from google_sign_in and it didn't resolve the problem (I'm not using supabase_auth_ui, only supabase_flutter).

Platform: web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants