<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [updateProfile](./auth.updateprofile.md)

## updateProfile() function

Updates a user's profile data.

<b>Signature:</b>

```typescript
export declare function updateProfile(user: User, { displayName, photoURL: photoUrl }: {
    displayName?: string | null;
    photoURL?: string | null;
}): Promise<void>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  user | [User](./auth.user.md) | The user. |
|  { displayName, photoURL: photoUrl } | { displayName?: string \| null; photoURL?: string \| null; } |  |

<b>Returns:</b>

Promise&lt;void&gt;

