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

Function orgSelectorFromRequest

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

Source from the content-addressed store, hash-verified

120
121/** The URL-pinned org selector for a request, or `null` to fall back to the session. */
122export const orgSelectorFromRequest = (request: Request): string | null =>
123 request.headers.get(ORG_SELECTOR_HEADER);
124
125/**
126 * 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