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

Function orgSelectorOf

e2e/cloud/connection-owner-isolation.test.ts:109–113  ·  view source on GitHub ↗
(identity: Identity)

Source from the content-addressed store, hash-verified

107 * client derives from the console URL (identities minted with an org carry
108 * it; org-scoped reads fail closed without one). */
109const orgSelectorOf = (identity: Identity): string => {
110 const selector = identity.headers?.[ORG_SELECTOR_HEADER];
111 if (!selector) throw new Error(`identity ${identity.label} carries no org selector header`);
112 return selector;
113};
114
115/** Invite `member` into `admin`'s org and accept — the real invite flow.
116 * Returns the member identity with its requests scoped to that org. */

Callers 1

joinOrgFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected