Packages

@clerk/nextjs

7.10.2 · 17 Nov 2026MIT4.1M / weekRepositoryHomepagenpmAtom feed

Your version

6.20.0

22 May 2025Where it was published

6.39.9 is the newest release of 6.x.

In short

1 new3 internal

Security

3 advisories affect 6.20.0; 6.39.3 fixes them

Release note

Minor Changes

  • Introduce treatPendingAsSignedOut option to getAuth and auth from clerkMiddleware

    By default, treatPendingAsSignedOut is set to true, which means pending sessions are treated as signed-out. You can set this option to false to treat pending sessions as authenticated.

    const { userId } = auth({ treatPendingAsSignedOut: false });
    const { userId } = getAuth(req, { treatPendingAsSignedOut: false });
    <SignedIn treatPendingAsSignedOut={false}>
      User has a session that is either pending (requires tasks resolution) or active
    </SignedIn>

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.