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

Function bearerToken

apps/vis/server/src/app.ts:67–71  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

65}
66
67function bearerToken(value: string | undefined): string | null {
68 if (value === undefined) return null;
69 const match = /^Bearer\s+(.+)$/i.exec(value);
70 return match?.[1]?.trim() ?? null;
71}
72
73function tokenMatches(actual: string, expected: string): boolean {
74 const actualBytes = Buffer.from(actual);

Callers 1

createAppFunction · 0.85

Calls 1

execMethod · 0.65

Tested by

no test coverage detected