Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerkstage.dev

User password management

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.

What did you think of this content?

Clerk © 2023