Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.com

User password management

The User object has methods that help you manage a user's password.

updatePassword()

function updatePassword: (params: UpdateUserPasswordParams) => Promise<User>;

Updates the user's password.

UpdateUserPasswordParams

NameTypeDescription
newPasswordstringThe user's new password.
currentPassword?stringThe user's current password.
signOutOfOtherSessions?boolean | undefinedIf set to true, all sessions will be signed out.

removePassword()

function removePassword: (params: RemoveUserPasswordParams) => Promise<User>;

Removes the user's password.

RemoveUserPasswordParams

NameTypeDescription
currentPasswordstringThe user's current password.

Last updated on February 21, 2024

What did you think of this content?

Clerk © 2024