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

Function validate

apps/cloud/src/auth/api-keys.node.test.ts:18–28  ·  view source on GitHub ↗
(response: unknown)

Source from the content-addressed store, hash-verified

16 );
17
18const validate = (response: unknown) =>
19 Effect.gen(function* () {
20 const apiKeys = yield* ApiKeyService;
21 return yield* apiKeys.validate("test_key");
22 }).pipe(
23 Effect.provide(
24 ApiKeyService.WorkOS.pipe(
25 Layer.provide(stubWorkOS({ validateApiKey: () => Effect.succeed(response) })),
26 ),
27 ),
28 );
29
30describe("ApiKeyService.WorkOS", () => {
31 it.effect("accepts user-owned keys with camel-case organization id", () =>

Callers 4

validateStandardFunction · 0.85
validateInputFunction · 0.85

Calls 1

stubWorkOSFunction · 0.70

Tested by

no test coverage detected