User password management
updatePassword()
function updatePassword: (params: UpdateUserPasswordParams) => Promise<User>;
Updates the user's password.
UpdateUserPasswordParams
Name | Type | Description |
---|---|---|
newPassword | string | The user's new password. |
currentPassword? | string | The user's current password. |
signOutOfOtherSessions? | boolean | undefined | If set to true , all sessions will be signed out. |
removePassword()
function removePassword: (params: RemoveUserPasswordParams) => Promise<User>;
Removes the user's password.
RemoveUserPasswordParams
Name | Type | Description |
---|---|---|
currentPassword | string | The user's current password. |