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
Update User Success Notice Bug #21
Comments
So while you can't actually update to an already existing email to the same address, the firebase api doesn't handle this error correctly and pass it through to us for handling. You can see it has an error message from the command line. However the method channel doesn't get handled and passed along by the firebase_auth api. Not sure how to fix this at this point without writing a whole bunch of extra code that would try and login with the new email address to see if it exists and then run through the update email function. I don't plan to do that as it would be better for flutter firebase_auth to pass along the error message. If anyone knows a good way to handle this problem, please let me know otherwise I will close this issue out until the package is updated and correctly handles the error. You may want to pass this problem to the firebase_auth package. |
It probably would need to be reported here. firebase/flutterfire#2582 |
I was able to fix it inline with 3 small changes. There is a threading issue. So the error is happening asynchronous to this code so it can't be caught:
|
Thanks so much! I have updated the project. |
When you update your email with an email that already exists in the database, you get an update user success notice even though the update should fail and the snack bar notice should be "Email is already in use" or something like that.
The text was updated successfully, but these errors were encountered: