MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / orgSelectorFromRequest

Function orgSelectorFromRequest

apps/cloud/src/auth/organization.ts:113–114  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

111
112/** The URL-pinned org selector for a request, or `null` to fall back to the session. */
113export const orgSelectorFromRequest = (request: Request): string | null =>
114 request.headers.get(ORG_SELECTOR_HEADER);
115
116/**
117 * Resolve an org SELECTOR (URL slug or `org_…` id) to the organization the

Callers 2

resolveSessionPrincipalFunction · 0.90
authorizeTenantFunction · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected