Skip to content

workos: serve org roles on the authorization path the v10 SDK calls#13

Merged
RhysSullivan merged 4 commits into
mainfrom
workos-authorization-roles
Jul 14, 2026
Merged

workos: serve org roles on the authorization path the v10 SDK calls#13
RhysSullivan merged 4 commits into
mainfrom
workos-authorization-roles

Conversation

@RhysSullivan

Copy link
Copy Markdown

The WorkOS Node SDK v10's authorization.listOrganizationRoles calls GET /authorization/organizations/:id/roles, but the emulator only served the legacy GET /organizations/:id/roles. The call 404'd and any app loading an org's roles (a members-page role picker) surfaced it as a 500. Serve both paths from one handler, with a round-trip test through the real SDK. v0.13.5.

The Node SDK's authorization.listOrganizationRoles hits
/authorization/organizations/:id/roles; the emulator only served the
legacy /organizations/:id/roles, so the call 404'd and any org-roles
load surfaced as a 500. Serve both paths from one handler, with a
round-trip test through the real SDK.

v0.13.5.
Pre-existing violations unrelated to the workos change; format:check
runs the whole repo, so these blocked every PR's gate.
Pre-existing type-check break (RequestInfo isn't in the package's lib
set); Request | string | URL is the same fetch input type without it.
@RhysSullivan
RhysSullivan merged commit f151e1d into main Jul 14, 2026
1 check passed
@RhysSullivan
RhysSullivan deleted the workos-authorization-roles branch July 14, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant