firebase updateMail change provider from email to anonymous when reset password from email
Version info
Angular: 7.2.1 Firebase: 5.7.3 AngularFire: 5.1.1 Other (e.g. Ionic/Cordova, Node, browser, operating system):
How to reproduce these conditions
Failing test unit, Plunkr, or JSFiddle demonstrating the problem
-
Create a Firebase user using auth .createUserWithEmailAndPassword(email, password).
-
Send email to change password using auth .sendPasswordResetEmail(email)
-
Switch email using auth.currentUser.updateEmail(newEmail)
-
Click on link to change password in email sent in step 2.
-
Firebase changes the provider from email to anonymous (removing the email).
-
I need to assign the anonymous record to an email. How can this be done???
Steps to set up and reproduce
Sample data and security rules
<-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) -->
Debug output
** Errors in the JavaScript console **
** Output from firebase.database().enableLogging(true); **
** Screenshots **
Expected behavior
Actual behavior
I was not signout the user between switching. Everything is ok now.