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:
Does anyone know how to avoid this?
Thanks in advance for your help!