voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
29 lines (18 loc) • 744 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/auth](./auth.md) > [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<void>