Update User Credentials

import { updateProfile } from "firebase/auth";
import { auth } from "../Configs/firebase";

updateProfile(auth.currentUser, {
  displayName: "Jane Q. User", photoURL: "https://example.com/jane-q-user/profile.jpg"
}).then(() => {
  // Profile updated!
  // ...
}).catch((error) => {
  // An error occurred
  // ...
});

Last updated

Was this helpful?