@clerk/backend
3.29.0 · 14 Nov 2026MIT8.4M / weekRepositoryHomepagenpmAtom feed
3.31.4 is the newest release of 3.x.
In short
3 new5 fixed1 internal
Release note
Minor Changes
Add support for new Backend API user endpoints:
users.replaceUserEmailAddress(userId, { emailAddress })replaces all of a user's email addresses with a single verified, primary email address (PUT /users/{user_id}/email_address).users.replaceUserPhoneNumber(userId, { phoneNumber })replaces all of a user's phone numbers with a single verified, primary phone number (PUT /users/{user_id}/phone_number).users.createUsernow acceptsbannedandlockedparameters to create a user that is already banned or locked.
Patch Changes
Emit the "session token from cookie is missing the
azpclaim" warning once per process instead of on every authenticated request. Anazp-less cookie token is reused across requests, so the previous unguardedconsole.warncould flood production logs.Stop
authenticateRequestfrom consuming the incoming request body, which previously left downstream handlers unable to read it (for example a Hono POST route callingc.req.json()).Prevent keyless mode from activating in CI and other automated environments in framework SDKs.
Preserve custom claims when verifying JWT-format M2M tokens.
M2MToken.fromJwtPayloadpreviously hardcodedclaimstonull, soclient.m2m.verify()(and request-levelauth()) dropped any custom claims embedded in the token. Custom claims are now reconstructed from the verified payload by stripping only the structural claims the backend adds when minting the token (iss,sub,exp,nbf,iat,jti). User-supplied claims such asaudare preserved. Tokens without custom claims still returnclaims: null, consistent with the opaque-token path.Strip
private_metadatafrom the backend resource_rawpayload instripPrivateDataFromObject, preventing it from leaking into__clerk_ssr_statewhen aUser/Organizationresource is passed tobuildClerkProps.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.