Packages

@clerk/clerk-js

6.44.0 · 17 Nov 2026MIT1.5M / weekRepositoryHomepagenpmAtom feed

Your version

6.44.0

Latest17 Nov 2026Where it was published

6.46.3 is the newest release of 6.x.

In short

1 new1 internal

Release note

Minor Changes

  • Let users whose password was found in a data breach pass reverification by resetting it. Until now the reverification modal only showed the breached-password error, so these users couldn't make any change that needs reverification, including changing that password. The modal now offers "Reset your password": the user sets a new password and enters a code sent to their email or phone, as in sign-in. Their other verification methods stay available.

    From UserProfile's change password form, the modal reuses the new password the user already entered, so they only enter the code.

    session.prepareFirstFactorVerification() and session.attemptFirstFactorVerification() accept the reset_password_email_code and reset_password_phone_code strategies, so custom flows can build the same reset.

    useReverification() accepts a new passReverificationResult option. With it, the fetcher receives what the reverification did as its first argument: passwordReset holds the new password and sign out choice when the user reset their password in the modal. Custom password change flows should adopt it: after the user resets their password to reverify, retrying user.updatePassword() would fail on the old currentPassword or overwrite the password the user just set.

    const { user } = useUser();
    const updatePassword = useReverification(
      (reverification: ReverificationResult | undefined, currentUser: UserResource, params: UpdateUserPasswordParams) =>
        // A password reset during reverification already saved the new password.
        reverification?.passwordReset ? currentUser.reload() : currentUser.updatePassword(params),
      { passReverificationResult: true },
    );
    
    // In the submit handler, once `user` is loaded:
    await updatePassword(user, { newPassword, signOutOfOtherSessions: true });

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.