MCPcopy Create free account
hub / github.com/MemTensor/MemOS / headerValue

Function headerValue

apps/memos-local-plugin/server/middleware/auth.ts:38–41  ·  view source on GitHub ↗
(h: string | string[] | undefined)

Source from the content-addressed store, hash-verified

36}
37
38function headerValue(h: string | string[] | undefined): string | undefined {
39 if (Array.isArray(h)) return h[0];
40 return h;
41}

Callers 2

enforceApiKeyFunction · 0.85
extractBearerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected