You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google oauth seems to no longer allow the account selection after selecting an account.
Something has changed within the last month or so. I'm not sure if it is device/android related (happens on many devices), code related, or google cloud related.
To reproduce:
Use an android device with multiple google accounts.
Press login in your app and choose account A
Logout
Press login in your app
At this point I'd like to have the user have the ability to select account B, but now it auto-logs in with account A
The account selection is not shown
Looking at the code everything looks correct:
in GoogleProvider: firebaseAuthProvider.setCustomParameters(const { 'prompt': 'select_account', });
I'm not sure why this in no longer honored on android.
It still works as expected on web (you see account selection), but android will just auto-assume the last account.
Any ideas?
Expected Behavior
Use a device with multiple google accounts.
Press login in your app and choose account A
Logout
Press login in your app
Choose account B
Actual Behavior
.
Additional Information
No response
The text was updated successfully, but these errors were encountered:
reimager
changed the title
GoogleProvider no longer allows account selection after first login
GoogleProvider on android no longer allows account selection after first login
Jan 6, 2025
@reimager - sorry, I don't have any ideas. This kind of question might get traction on a platform like Stack Overflow.
No worries. I'm not sure, but I kinda doubt this has to do with this repo. I suspect likely some bigger change in android & google oauth, but I thought I'd just put it here in case anyone ever had ideas after searching.
The only odd thing is that this now happens on older android versions whereas it did not before, so I'm really clueless as to where to start.
Thanks for reply.
Is there an existing issue for this?
What plugin is this bug for?
Firebase UI Auth
What platform(s) does this bug affect?
No response
List of dependencies used.
flutter pub deps -s list
dev dependencies:
transitive dependencies:
Steps to reproduce
Google oauth seems to no longer allow the account selection after selecting an account.
Something has changed within the last month or so. I'm not sure if it is device/android related (happens on many devices), code related, or google cloud related.
To reproduce:
At this point I'd like to have the user have the ability to select account B, but now it auto-logs in with account A
The account selection is not shown
Looking at the code everything looks correct:
in GoogleProvider:
firebaseAuthProvider.setCustomParameters(const { 'prompt': 'select_account', });
I'm not sure why this in no longer honored on android.
It still works as expected on web (you see account selection), but android will just auto-assume the last account.
Any ideas?
Expected Behavior
Actual Behavior
.
Additional Information
No response
The text was updated successfully, but these errors were encountered: