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.26.0

7 Apr 2025Where it was published

5.61.12 is the newest release of 5.x.

npm marks 5.26.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

4 new1 fixed2 internal

Security

1 advisory affects 5.26.0; 5.61.6 fixes them

Release note

Minor Changes

  • Update useSession to handle pending sessions as signed-out by default, with opt-out via useSession({ treatPendingAsSignedOut: false }) or <ClerkProvider treatPendingAsSignedOut={false} />

  • Update useAuth to handle pending sessions as signed-out by default, with opt-out via useAuth({ treatPendingAsSignedOut: false }) or <ClerkProvider treatPendingAsSignedOut={false} />

Patch Changes

  • Fixes an issue where a race condition was caused by triggering navigations during a call to setActive.

  • Introduce clerk.__internal_openCheckout() and clerk.__internal_closeCheckout() methods and remove <Checkout /> from within the <PricingTable /> component.

  • Introduce treatPendingAsSignedOut prop to client control components

    // Children node only mounts when session is active
    // Example: Organization selection must be completed if enforced
    <SignedIn>
      <p>You have selected an organization!</p>
    </SignedIn>
    // Children node mounts for both active and pending session
    <SignedIn treatPendingAsSignedOut={false}>
      <p>You might not have an organization selected</p>
    </SignedIn>
    // Children node only mounts when session is active
    // Example: Organization selection must be completed if enforced
    <Protect>
      <p>You have selected an organization!</p>
    </Protect>
    // Children node mounts for both active and pending session
    <Protect treatPendingAsSignedOut={false}>
      <p>You might not have an organization selected</p>
    </Protect>

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.