Change email of a user with Firebase simple login

597 Views Asked by At

If I have a user that logged in with email/password is there any way to change that user’s email address on the backend?

I see I can have the user change it themselves with oldEmail, newEmail, password:

ref.changeEmail({
  oldEmail : "[email protected]",
  newEmail : "[email protected]",
  password : "correcthorsebatterystaple"
}, function(error) {
  if (error === null) {
    console.log("Email changed successfully");
} else {
    console.log("Error changing email:", error);
}

But is there any way for me to change it for them without the password?

1

There are 1 best solutions below

0
dylanjha On BEST ANSWER

From Firebase support: There is no way to change the user's email address without the password.