Skip to content
Compare
Choose a tag to compare
@clerk-cookie clerk-cookie released this 02 Jul 18:57
· 897 commits to main since this release
1a704ed

Minor Changes

  • Introduces dynamic keys from clerkMiddleware, allowing access by server-side helpers like auth. Keys such as signUpUrl, signInUrl, publishableKey and secretKey are securely encrypted using AES algorithm. (#3525) by @LauraBeatris

    • When providing secretKey, CLERK_ENCRYPTION_KEY is required as the encryption key. If secretKey is not provided, CLERK_SECRET_KEY is used by default.
    • clerkClient from @clerk/nextjs should now be called as a function, and its singleton form is deprecated. This change allows the Clerk backend client to read keys from the current request, which is necessary to support dynamic keys.

    For more information, refer to the documentation: https://clerk.com/docs/references/nextjs/clerk-middleware#dynamic-keys