Tope
Tope

Reputation: 1008

After using firebase email update API how do I reuse the old email?

UPDATE: it just randomly started working for me now...is there a period of time after updating an email that it is ineligible for new account creation?

I was able to use this API call provided by firebase to change emails for an account, but now I cannot use the other email to create a new count. I cannot reuse the other email at all. It seems like there is still a lock or hold on the old email. https://firebase.google.com/docs/reference/js/firebase.User#updateEmail

Steps to reproduce error

  1. signup with [email protected]
  2. update account email to [email protected] (and click verification link sent via email)
  3. cannot create a new account (nor re-update existing account) with [email protected]

I am simply looking to free up the email that is no longer in use. ([email protected])

Note in image below that '[email protected]' does not show up enter image description here

Upvotes: 2

Views: 675

Answers (1)

bojeil
bojeil

Reputation: 30848

This is a security related behavior. The old email is reserved just in case the owner of the email decides to revert to the old account by clicking the email change revocation link which is sent to the old email. This gives the owner of the account the ability to recover their account in case it was hijacked and the attacker tried to change their email.

Upvotes: 4

Related Questions