After updating the user's firebase auth email - the old email keep syncing with the account

61 views
Skip to first unread message

Jairo Martínez (Mc Jhezem)

unread,
Oct 27, 2022, 7:54:53 PM10/27/22
to Firebase Google Group
Hi guys!

I'm using the nodejs firebase admin module to update users' auth email with a cloud function, this is part of my code:

admin.auth()
      .updateUser(uid, {
        email: email
      }).then(function (userRecord){
        res.send(userRecord.toJSON())
      })

After updating the email with a new one, the user is still able to log into my app with the old email, and if I search the old email on the firebase auth it shows me the new email like in the SS below:

image (1).png

Does anyone know how to avoid this?

Thanks in advance for your help!

Reply all
Reply to author
Forward
0 new messages