Packages

@clerk/clerk-react

5.61.3 · 27 Feb 2026MIT2.5M / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: This package is no longer supported. Please use @clerk/react instead. See the upgrade guide for more info: https://clerk.com/docs/guides/development/upgrading/upgrade-guides/core-3What to use instead
Your version

5.14.0

31 Oct 2024Where it was published

5.61.12 is the newest release of 5.x.

npm marks 5.14.0 as deprecated: This package is no longer supported. Please use @clerk/react instead. See the upgrade guide for more info: clerk.com/docs/guides/development/upgrading/upg…

In short

2 new3 fixed2 internal

Security

1 advisory affects 5.14.0; 5.61.6 fixes them

Release note

Minor Changes

  • Introduce a new experimental hook called useReverification that makes it easy to handle reverification errors.

    It returns a high order function (HOF) and allows developers to wrap any function that triggers a fetch request which might fail due to a user's session verification status.
    When such error is returned, the recommended UX is to offer a way to the user to recover by re-verifying their credentials.
    This helper will automatically handle this flow in the developer's behalf, by displaying a modal the end-user can interact with.
    Upon completion, the original request that previously failed, will be retried (only once).

    Example with clerk-js methods.

    import { __experimental_useReverification as useReverification } from "@clerk/nextjs";
    
    function DeleteAccount() {
      const { user } = useUser();
      const [deleteUserAccount] = useReverification(() => {
        if (!user) return;
        return user.delete();
      });
    
      return (
        <>
          <button
            onClick={async () => {
              await deleteUserAccount();
            }}
          >
            Delete account
          </button>
        </>
      );
    }

Patch Changes

  • Fix signOutOptions prop usage in <SignOutButton /> component

  • Introduce redirectUrl property on setActive as a replacement for beforeEmit.

    • Deprecates beforeEmit property on setActive.

  • Updates useDerivedAuth() to correctly derive has() from the available auth data. Fixes an issue when useAuth() is called during server-side rendering.

  • Updating peerDependencies for correct ranges

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.