Closed pidanou closed 1 month ago
I think for the auth UI, it does make sense to automate things, but for the supabase-flutter SDK, it makes more sense to do less automation so that the developer has full control over what happens. If the developer wants to sign out of Google when Supabase auth signs out, they can.
Describe the bug I am using flutter_auth_ui (which apparently uses supabase-flutter), and I added Google social auth. Using
Supabase.instance.client.auth.signOut()
does signOut the user but when the user logs in again, the app does not ask to choose the desired Google account.I suspected that
Supabase.instance.client.auth.signOut()
does not sign out the user from Google.So I added
_googleSignIn.signOut();
where _googleSignin is an instance ofGoogleSignIn
from google_sign_in package and with that, when the user tries to login again, the app asks for the desired account to be used.Here is the full code snippet:
This does not work:
This works:
To Reproduce Steps to reproduce the behavior:
Expected behavior When using
signOut
method, the user should be disconnected and when he tries to login again, he should be able to select the desired account. And without using_googleSignIn.signOut();
Screenshots If applicable, add screenshots to help explain your problem.
Version (please complete the following information): On Linux/macOS