@clerk/backend
3.29.0 · 14 Nov 2026MIT8.4M / weekRepositoryHomepagenpmAtom feed
Upgrading @clerk/backend From 3.2.12 to 3.29.0
85 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Deprecated3.22.0
- Deprecated3.16.10
- Deprecated3.14.0
- Deprecated3.12.0
- Deprecated3.12.0
- Deprecated3.7.0
- Deprecated3.7.0
- Deprecated3.4.11
Security
Fixes 1 advisory affecting 3.2.12
- Clerk has an authorization bypass when combining organization, billing, or reverification checkshigh · GHSA-w24r-5266-9c3c
- 3.2.13
Add path traversal protections in
joinPaths
Release by release
- New
Fetch the Poppy JSON artifact with the Clerk-defined
clerkClient.artifacts.getPoppyJson()method. - New
Add support for Personal Agent Protocol signed-in browser sessions. Enable the Clerk-defined
poppy: trueoption onclerkMiddleware()to publish Poppy and OAuth protected resource discovery on the application domain. - New
Add
sessions.updateSession()to change when a single session expires, andusers.mergeUser()to merge one user into another. Theuser.mergedwebhook event is now part ofUserWebhookEvent, with a payload typed asUserMergedJSON. - New
Add
selfServeSsoEnabledandselfServeDirectorySyncEnabledto the parameters accepted byupdateOrganization().
- New
- New
JWTs without a
catheader are no longer accepted as session tokens:authenticateRequest()returns signed out (token-type-mismatch) andverifyToken()returnstoken-invalid. This includes OIDCid_tokens issued by Clerk. Tests that sign their own session tokens must addcat: 'cl_B7d4PD111AAA'to the header. - New
Add
startingAftertousers.getUserList()so applications can page through user lists with a cursor.
- New
- New
Add
DirectoryGroupWebhookEventandDirectoryGroupMembershipWebhookEventtoWebhookEvent, soverifyWebhook()narrows thedirectoryGroup.created,directoryGroup.updated,directoryGroup.synced,directoryGroup.deleted,directoryGroupMembership.createdanddirectoryGroupMembership.deletedevents that Directory Sync sends. Their payload types are exported asDirectoryGroupWebhookEventJSON,DirectoryGroupMembershipWebhookEventJSONandDeletedDirectoryGroupMembershipWebhookEventJSON.
- New
3.26.6nothing new or fixed in the note
- New
Add
bcrypt_peppered,md5_salted,pbkdf2_sha512,pbkdf2_sha512_hex,sha256_salted, andsha512_symfonyto thePasswordHashertype, so TypeScript accepts every hasher thecreateUser()JSDoc documents. The JSDoc formd5_saltedandsha256_saltednow also shows thepassword_digestformat the Backend API accepts:hash$salt, notsalt$hash. - Fixed
tslibis no longer installed as a runtime dependency. The published builds never imported it.
- New
3.26.4nothing new or fixed in the note
- Fixed
Update the
lockUser()JSDoc to link to the Protections page under Protect (/~/protect/protections) in the Clerk Dashboard. Point the user lock links in thelockUser(),unlockUser(),CreateUserParams.locked, andUser.lockedJSDoc to the current guide on user locks. - Fixed
Session
expireAtandabandonAtno longer special-case a0deadline; the backend now always sends a real deadline.
- Fixed
3.26.2nothing new or fixed in the note
5 other lines we could not sort, mostly version bumps
- 3.14.0
EnterpriseConnectionnow exposesprovider,logoPublicUrl,allowOrganizationAccountLinking,authenticatable,disableJitProvisioning, andcustomAttributes. - 3.14.0
EnterpriseConnectionSamlConnectionnow exposesactive,forceAuthn, andloginHint. - 3.14.0
EnterpriseConnectionOauthConfignow exposesproviderKey,authUrl,tokenUrl,userInfoUrl, andrequiresPkce. - 3.14.0
organizationIdis now normalized tonullwhen the Backend API omits it, matching its declaredstring | nulltype. Properties backed by optional API fields (for exampleoauthConfig.clientIdand the SAML IdP fields) are now typed as possiblyundefinedto match runtime behavior. - 3.12.0
nameanddomainsare now required onCreateEnterpriseConnectionParams. The Backend API already rejected requests missing either of them, so calls that omitted these fields failed at runtime; the types now surface this at compile time.
76 internal lines (docs, tests, tooling) left out.
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.