Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.com

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.

Last updated on October 4, 2023

What did you think of this content?

Clerk © 2023