( orgAuth: Layer.Layer<McpOrganizationAuth>, auth: Layer.Layer<McpAuth> = stubAuth, )
| 85 | }> {} |
| 86 | |
| 87 | const authenticateWith = ( |
| 88 | orgAuth: Layer.Layer<McpOrganizationAuth>, |
| 89 | auth: Layer.Layer<McpAuth> = stubAuth, |
| 90 | ) => |
| 91 | Effect.gen(function* () { |
| 92 | const provider = yield* McpAuthProvider; |
| 93 | return yield* provider.authenticate(request()); |
| 94 | }).pipe( |
| 95 | Effect.provide(cloudMcpAuthProviderLayer.pipe(Layer.provide(Layer.mergeAll(auth, orgAuth)))), |
| 96 | ); |
| 97 | |
| 98 | describe("cloud MCP org-authorization classification", () => { |
| 99 | it.effect("WorkOS 5xx -> Unavailable (retryable 503, session preserved)", () => |
no test coverage detected