Reset Password

import { getAuth, updatePassword } from "firebase/auth";
import { auth } from "../Configs/firebase";

const user = auth.currentUser;
const newPassword = 'MyNewPassword123987';

updatePassword(user, newPassword).then((result) => {
  // Update successful.
  console.log(result)
}).catch((error) => {
  // An error ocurred
  // ...
});

Last updated

Was this helpful?