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

Function stubOrgAuthFailing

apps/cloud/src/mcp/auth-provider.test.ts:65–66  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

63// with `status` when WorkOS answered (its SDK exceptions all carry one), without
64// when the failure never reached WorkOS (network error / timeout).
65const 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.
69const stubOrgAuthNoMembership = Layer.succeed(McpOrganizationAuth)({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected