MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / unauthorized

Function unauthorized

packages/cli/src/cloud/index.test.ts:24–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23const ok = (body: unknown): Response => jsonResponse(200, body);
24const unauthorized = (): Response =>
25 jsonResponse(401, { error: { message: "token revoked", code: "unauthorized" } });
26
27// Narrow a recorded fetch call to the headers of its RequestInit without
28// casting; throws (failing the test) if the call shape is unexpected.

Callers 1

index.test.tsFile · 0.85

Calls 1

jsonResponseFunction · 0.85

Tested by

no test coverage detected