update

Updates the current user, or the user with the given session ID, with the provided parameters.

Return

A ClerkResult containing the updated User if the operation was successful, or a ClerkErrorResponse if it failed.

Parameters

sessionId

The session id of the user to update. If null, the current user is updated.

params

The parameters to update the user with. See: UpdateParams.