Skip to content

@clerk/nextjs@6.29.0

Compare
Choose a tag to compare
@clerk-cookie clerk-cookie released this 06 Aug 16:40
· 12 commits to main since this release
0560de8

Minor Changes

  • [Billing Beta] Stricter return type of useCheckout to improve inference of other properties. (#6473) by @panteliselef

Patch Changes

  • Propagate treatPendingAsSignedOut to auth from clerkMiddleware (#6477) by @LauraBeatris

    export default clerkMiddleware(async (auth, req) => {
      // If the session has a `pending` status, `userId` will be `null` by default, treated as a signed-out state
      const { userId } = await auth();
    });
    export default clerkMiddleware(async (auth, req) => {
      // If the session has a `pending` status, `userId` will be defined, treated as a signed-in state
      const { userId } = await auth({ treatPendingAsSignedOut: false });
    });
  • Updated dependencies [9368daf, f93965f, 7b6dcee, ef87617]:

    • @clerk/shared@3.18.0
    • @clerk/clerk-react@5.39.0
    • @clerk/types@4.73.0
    • @clerk/backend@2.6.3