releases.shpreview
Clerk/JavaScript SDK/@clerk/express@2.1.15

@clerk/express@2.1.15

$npx @buildinternet/releases get rel_CuzsQV5zcTaMPxkX68bqw

Patch Changes

  • Forward all AuthenticateRequestOptions and VerifyTokenOptions passed to clerkMiddleware() through to the backend authenticateRequest() call. Previously only a hand-picked subset was forwarded, so options like organizationSyncOptions, skipJwksCache, and headerType were accepted by the TypeScript types but silently ignored at runtime — the same class of bug that caused clockSkewInMs to be dropped. (#8370) by @jacekradko

    Additionally, when apiUrl or apiVersion are passed to clerkMiddleware() and no custom clerkClient is supplied, the middleware now builds a per-middleware ClerkClient configured with those values instead of using the env-only default singleton. This is required because @clerk/backend pins apiUrl/apiVersion at client construction time and ignores runtime overrides on authenticateRequest(). Passing your own clerkClient continues to take precedence.

  • Updated dependencies [0ab09a8, 6408ab6, 5cda3ee]:

    • @clerk/backend@3.4.7
    • @clerk/shared@4.10.2

Fetched May 8, 2026