Instance-level organization RBAC APIs now available
@clerk/backend@3.6.0
Minor Changes
- Add Backend API support for managing instance-level organization RBAC.
createClerkClient()now exposes: (#8774) by @dmoernerorganizationPermissions— list, get, create, update, and delete organization permissions.organizationRoles— list, get, create, update, and delete organization roles, plus assign/remove a permission to/from a role.roleSets— list, get, create, update, add roles to, replace a role in, and replace a role set.
Patch Changes
-
Fix the return type of
clerkClient.organizations.createOrganizationInvitationBulk()toPaginatedResourceResponse<OrganizationInvitation[]>. The Backend API returns the bulk-created invitations in a{ data, totalCount }envelope (the same shape asgetOrganizationInvitationList()), but the method was typed asOrganizationInvitation[], which did not match the value returned at runtime. (#8751) by @VihAMBR -
Return
IdPOAuthAccessTokentimestamps in milliseconds when an OAuth access token is verified as a JWT. Theexpiration,createdAt, andupdatedAtfields were previously populated with the JWT's raw second-basedexp/iatvalues, making them inconsistent with the same fields onM2MTokenand with the values returned when the token is fetched from the API. ComparingexpirationagainstDate.now()now behaves as expected. Theexpiredflag was already computed correctly and is unaffected. (#8771) by @jacekradko -
Prevent an unhandled exception when verifying a machine token whose JWT payload has a missing or non-string
sub. Such tokens are now classified and rejected with a typed verification error instead of throwing, so a craftedAuthorizationheader can no longer surface as an unhandled error during request authentication. (#8744) by @jacekradko -
Redact raw bearer credentials from the
authobject's debug output. The debug payload (surfaced when an SDK enables middleware debug logging) previously included full session, machine, refresh, dev-browser and handshake tokens; each now exposes only a short, non-reconstructable prefix, matching howsecretKeyandjwtKeyare already handled. (#8744) by @jacekradko -
Add and improve JSDoc comments across public types and methods to support generated reference documentation for the
/objectsdocs section. Exports a few previously-internal types (OnEventListener,OffEventListener,ClerkOptionsNavigation) so they can be referenced from the generated docs. (#8276) by @alexisintech -
Updated dependencies [
2d6670c,af706e3,032632c,0fece6f,b295af3,8e1bd48]:- @clerk/shared@4.16.0
Fetched June 10, 2026


