Skip to main content

useUpdateUser

Overview

The useUpdateUser hook is used to update a user’s profile information. This includes updating fields such as name, username, avatar, bio, and more. It also supports metadata updates for flexible user data management.

Usage Example

Parameters & Returns

Parameters

The hook returns a function that accepts an object with the following fields:
userId
string
required
The ID of the user to update.
update
UpdateUserParams
required
The fields and values to update for the user.

UpdateUserParams

Returns

The function resolves with an object containing the updated user details:
AuthUser
AuthUser
The updated user object.