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

Function tokenFetch

packages/cli/src/auth/oauth.test.ts:299–305  ·  view source on GitHub ↗
(body: Record<string, unknown>)

Source from the content-addressed store, hash-verified

297
298 describe("startAuthorizationCodeFlow persistence", () => {
299 function tokenFetch(body: Record<string, unknown>): typeof fetch {
300 return (async () =>
301 new Response(JSON.stringify(body), {
302 status: 200,
303 headers: { "content-type": "application/json" },
304 })) as unknown as typeof fetch;
305 }
306
307 it("overwrites the OAuth block on fresh login (no inherited refresh_token)", async () => {
308 // Pre-seed a prior session whose refresh_token must NOT leak into

Callers 1

oauth.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected