Skip to content

Releases: clerk/javascript

@clerk/[email protected]

16 Oct 16:44
4f3ceaf

Choose a tag to compare

Patch Changes

@clerk/[email protected]

15 Oct 20:34
d8948b8

Choose a tag to compare

Patch Changes

@clerk/[email protected]

15 Oct 20:34
d8948b8

Choose a tag to compare

Minor Changes

  • [Experimental] Add support for sign-in with passkey to new APIs (#6997) by @dstaley

Patch Changes

@clerk/[email protected]

15 Oct 20:34
d8948b8

Choose a tag to compare

Patch Changes

@clerk/[email protected]

15 Oct 20:34
d8948b8

Choose a tag to compare

@clerk/[email protected]

15 Oct 20:34
d8948b8

Choose a tag to compare

@clerk/[email protected]

15 Oct 20:34
d8948b8

Choose a tag to compare

Minor Changes

  • Internal refactor of error handling to improve type safety and error classification. (#6985) by @nikosdouvlis

    • Introduce new ClerkError base class for all Clerk errors
    • Rename internal error files: apiResponseError.tsclerkApiResponseError.ts, runtimeError.tsclerkRuntimeError.ts
    • Add ClerkAPIError class for individual API errors with improved type safety
    • Add type guard utilities (isClerkError, isClerkRuntimeError, isClerkApiResponseError) for better error handling
    • Deprecate clerkRuntimeError property in favor of clerkError for consistency
    • Add support for error codes, long messages, and documentation URLs

Patch Changes

  • Fixed JWT public key caching in verifyToken() to support multi-instance scenarios. Public keys are now correctly cached per kid from the token header instead of using a single shared cache key. (#6993) by @nikosdouvlis

    What was broken:

    When verifying JWT tokens with the jwtKey option (PEM public key), all keys were cached under the same cache key. This caused verification failures in multi-instance scenarios.

    What's fixed:

    JWT public keys are now cached using the kid value from each token's header.

  • Updated dependencies [53214f9, 1441e68]:

@clerk/[email protected]

15 Oct 20:34
d8948b8

Choose a tag to compare

@clerk/[email protected]

15 Oct 20:35
d8948b8

Choose a tag to compare

@clerk/[email protected]

15 Oct 20:34
d8948b8

Choose a tag to compare