-
Notifications
You must be signed in to change notification settings - Fork 110
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 Bug Report: [Android] Switching to any authenticator app while creating a Google OAuth Session breaks the login flow #181
Comments
Playing around with the |
Tested on iOS. Also found a new clue: For some reason, the browser window "Sign in with Google" is closed automatically as soon as I try to switch to another app. Screen_Recording_20231119_163813_One.UI.Home.movThis behavior can be reproduced on different physical Android devices and on emulated devices as well. |
Workaround:
|
馃憻 Reproduction steps
Requirements
Reproduction
createOAuth2Session(provider: "google")
Further information
Article how to add Google 2FA to your account: https://support.google.com/accounts/answer/185839
I've created a minimal reproduction repository:
https://gitlab.com/metalwings/appwrite-flutter-oauth2-demo
In my case the default "is this you?" screen is automatically shown by android as soon as I try to login into my account.
馃憤 Expected behavior
Switching to any authenticator app doesn't break the login flow.
Users should be able to switch to other app (in my case the default android auth by google, check my 2FA Code (or press "that's me") and login after I've completed the 2FA flow
馃憥 Actual Behavior
The login flow is cancelled due to loss of app focus.
An exception is thrown:
馃幉 Appwrite version
Version 2.0.x
Appwrite Cloud
SDK Version 11
馃捇 Operating system
Linux
馃П Your Environment
Problem can be reproduced in the appwrite cloud version
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: