-
Notifications
You must be signed in to change notification settings - Fork 4k
🐛 [flutterfire_ui] Auth: Profile screen does not rebuild after email verification status changes. #8683
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
Comments
@neiljaywarner |
Plugins example required many files but authgate code cones from docs.
I didn't try ios
....sent from my phone
…On Mon, May 16, 2022, 5:39 AM darshankawar ***@***.***> wrote:
@neiljaywarner <https://github.com/neiljaywarner>
Is this happening on Android or iOS ?
Does the same behavior occur using plugin's example too ?
—
Reply to this email directly, view it on GitHub
<#8683 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXBGYKJNKIXCHNRKQJN7CLVKIQWFANCNFSM5V4UWZBA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I've made this "Waiting for email verification" screen myself. I discovered that this is an issue with Firebase Auth, the My solution was to create a looping timer (e.g. every 10 seconds) and call "FirebaseAuth.instance.currentUser?.reload();". Here's an example: Make sure you define By forcing the ...currentUser?.reload() method, the |
@BrutalCoding |
I also agree with this issue. |
Thanks for the suggestion, I have opened a new issue here #8777 and described it in more detail. I personally think that its not only Flutter's firebase_auth package that is affected by this, but it might be a widespread issue with all Firebase Auth SDK's. The reason I say this is because Firebase Auth for JavaScript faces the same issue: https://firebase.google.com/docs/reference/js/v8/firebase.auth.Auth#onauthstatechanged |
I wanted to bring some attention to more issues related to the ProfileScreen not rebuilding with #9682. Maybe it is related. |
fixed in #9343 |
Email auth has a "waiting for email" with a spinner on the profile screen.
Expected behaviour:
Actual behaviour:
Signing out and signing back in causes it to vanish.
Note: I'm on flutter UI flutterfire_ui: 0.4.0+5 because 0.4.1 seems to require flutter 3.
The text was updated successfully, but these errors were encountered: