unsetPasswordCompromised()
Unsets the given user's password as compromised. The user will no longer be prompted to reset their password on their next sign-in. See the guide on password protection and rules for more information.
Returns the updated User.
function unsetPasswordCompromised(userId: string): Promise<User>- Name
userId- Type
string- Description
The ID of the user to unset the password as compromised for.
const userId = 'user_123'
const response = await clerkClient.users.unsetPasswordCompromised(userId)Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint POST/users/{user_id}/password/unset_compromised. See the BAPI reference for more information.
Feedback
Last updated on