useUpdateUser
Overview
TheuseUpdateUser 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:string
required
The ID of the user to 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
The updated user object.

