github clerk/javascript @clerk/nextjs@6.20.0

latest releases: @clerk/types@4.92.0, @clerk/clerk-js@5.99.0, @clerk/fastify@2.4.37...
5 months ago

Minor Changes

  • Introduce treatPendingAsSignedOut option to getAuth and auth from clerkMiddleware (#5756) by @LauraBeatris

    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>

Patch Changes

  • Updated dependencies [ced8912, f237d76, 5f1375b]:
    • @clerk/backend@1.33.0
    • @clerk/shared@3.9.3
    • @clerk/clerk-react@5.31.6

Don't miss a new javascript release

NewReleases is sending notifications on new releases.