-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
🐛 [firebase_UI_auth] "credential linked" callback not getting called #11115
Comments
Thanks for the report @graemep-nz |
Whereabouts do I put that code? Adding it to code shown above will definitely not help because it doesn't get executed again. |
Thanks for the feedback. Using the plugin example, seeing the same behavior as reported. |
@graemep-nz assuming this is reproducible on web (since |
Bug report
If someone registers using google federated login, then on the profile page they add an additional signin method of email/password, they are asked for email address and password. The profile page updates correctly to show the second login method. If the user has entered a different email address from their google federated login, an email is sent to the users old google email address telling them that their email address has been changed to the new one. The new email address becomes the users primary email address on firebase - accessible via user.email. However the system (the example app) fails to immediately verify the users new email address. If they log out and back in, they do get asked to verify the new email address. The system should immediately ask them to verify the new email address without them logging out and back in. I tried adding an auth state change for "credential linked" to the profile screen constructor but it did not get triggered.
Steps to reproduce
Use the example app and follow the description above.
Expected behavior
The user should be asked to verify their email address immediately, possibly via the CredentialLinked callback.
Sample project
Use the example app on pub.dev
https://pub.dev/packages/firebase_ui_auth
Flutter doctor
Click To Expand
``` Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.7.12, on Microsoft Windows [Version 10.0.22621.1702], locale en-NZ) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 33.0.1) [√] Chrome - develop for the web [√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.1) [√] Android Studio (version 2022.2) [√] VS Code (version 1.78.2) [√] VS Code, 64-bit edition (version 1.77.3) [√] Connected device (3 available) [√] HTTP Host Availability• No issues found!
Dart SDK 2.19.6
Flutter SDK 3.7.12
my_bridge_app 1.0.0+1
dependencies:
dev dependencies:
transitive dependencies:
The text was updated successfully, but these errors were encountered: