Firebase using only Email/Password getting a “The email address is already in use by another account.” when attempting to change an email
Firebase using only Email/Password getting a “The email address is already in use by another account.” when attempting to change an email
I have a user trying to update their email address and She is getting a 400, "EMAIL_EXISTS"/"The email address is already in use by another account."
The application is only using Email/Password from the different auth options. When I go to the Authentication tab and search the email address it returns no results. Why would I get that error if there is no email address in the system?
Here is the code (Typescript / Angular / AngularFire2):
this.auth$.auth.signInWithEmailAndPassword(currentEmail, password).then(() => {
this.auth$.auth.currentUser.updateEmail(newEmail).then((data) => {
this.auth$.auth.signInWithEmailAndPassword(newEmail, password).then(() => {...
Have you used an ID that you tried to replace before?
– monkeyjump
Sep 6 '18 at 3:28
I have added the code I'm using. I am able to change emails back and forth without problems on any other email address (ID) other than this one.
– Shane Loveland
Sep 6 '18 at 3:37
If I search through "authentication" in firebase by the email address it is not there.
– Shane Loveland
Sep 6 '18 at 3:37
It could be that another user had the same email but then changed it via
updateEmail. Usually an email is sent to the original email to allow the user to revert the change. The old email would be reserved in case the original own wants to revert back to it.– bojeil
Sep 7 '18 at 1:54
updateEmail
0
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
please, provide the code
– artur grzesiak
Sep 6 '18 at 0:03