(target: TargetShape, identity: Identity, name: string)
| 109 | |
| 110 | /** Create another org for this account; returns the identity bound to it. */ |
| 111 | const 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 |
no test coverage detected