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

Function createAnotherOrg

e2e/cloud/connection-owner-isolation.test.ts:111–115  ·  view source on GitHub ↗
(target: TargetShape, identity: Identity, name: string)

Source from the content-addressed store, hash-verified

109
110/** Create another org for this account; returns the identity bound to it. */
111const createAnotherOrg = (target: TargetShape, identity: Identity, name: string) =>
112 Effect.gen(function* () {
113 const response = yield* postJson(target, "/api/auth/create-organization", identity, { name });
114 return withRefreshedSession(identity, response);
115 });
116
117// `/api/auth/switch-organization` (session-cookie-based org switching) was
118// removed in #1000 (commit 1f9bfe06b): the URL is now the scope authority, not

Calls 2

postJsonFunction · 0.70
withRefreshedSessionFunction · 0.70

Tested by

no test coverage detected