updateProfile(Defined in: packages/modelence/src/auth/client/index.ts:122 Update the current user’s profile.options):Promise<null|User>
Example
Parameters
Returns
Promise<null | User>Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
updateProfile(Defined in: packages/modelence/src/auth/client/index.ts:122 Update the current user’s profile.options):Promise<null|User>
await updateProfile({ firstName: 'Atul', lastName: 'Yadav', avatarUrl: 'https://example.com/avatar.jpg', handle: 'atulyadav' });
| Parameter | Type | Description |
|---|---|---|
options | { avatarUrl?: string; firstName?: string; handle?: string; lastName?: string; } | - |
options.avatarUrl? | string | The avatar URL of the user. |
options.firstName? | string | The first name of the user. |
options.handle? | string | The handle of the user. |
options.lastName? | string | The last name of the user. |
Promise<null | User>