Update User Information

We can update user profiles on our application like in other applications. The Firebase Authentication SDK offers functions that we can use to update users’ information to keep their data updated.

Update a user’s profile

We can update a user’s basic profile information—their display name and photo URL—by using the updateProfile function. We import the function from the firebase/auth subpackage. This function takes a reference to the current user as its first argument and takes an object containing the updated display name and photo URL as its second argument:

Get hands-on with 1200+ tech skills courses.