(error: unknown)
| 63 | // with `status` when WorkOS answered (its SDK exceptions all carry one), without |
| 64 | // when the failure never reached WorkOS (network error / timeout). |
| 65 | const stubOrgAuthFailing = (error: unknown): Layer.Layer<McpOrganizationAuth> => |
| 66 | Layer.succeed(McpOrganizationAuth)({ authorize: () => Effect.fail(error) }); |
| 67 | |
| 68 | // `authorize` SUCCEEDS with `null` — the caller genuinely holds no membership. |
| 69 | const stubOrgAuthNoMembership = Layer.succeed(McpOrganizationAuth)({ |