MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / authHeaders

Function authHeaders

packages/server/test/helpers/serverHarness.ts:53–55  ·  view source on GitHub ↗
(token: string = DEFAULT_TOKEN)

Source from the content-addressed store, hash-verified

51
52/** An `Authorization: Bearer <token>` header bag, for spreading into `headers`. */
53export function authHeaders(token: string = DEFAULT_TOKEN): { Authorization: string } {
54 return { Authorization: `Bearer ${token}` };
55}
56
57/**
58 * Merge `Authorization: Bearer <token>` into a `fetch` `RequestInit`, preserving

Callers 5

probeDebugFunction · 0.90
start.test.tsFile · 0.90

Calls

no outgoing calls

Tested by 1

probeDebugFunction · 0.72