Skip to main content
API Reference / modelence / client / updateProfile
updateProfile(options): Promise<null | User>
Defined in: packages/modelence/src/auth/client/index.ts:93 Update the current user’s profile.

Example

await updateProfile({ firstName: 'Atul', lastName: 'Yadav', avatarUrl: 'https://example.com/avatar.jpg', handle: 'atulyadav' });

Parameters

ParameterTypeDescription
options{ avatarUrl?: string; firstName?: string; handle?: string; lastName?: string; }-
options.avatarUrl?stringThe avatar URL of the user.
options.firstName?stringThe first name of the user.
options.handle?stringThe handle of the user.
options.lastName?stringThe last name of the user.

Returns

Promise<null | User>