Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
38
function
headerValue(h: string | string[] | undefined): string | undefined {
39
if
(Array.isArray(h))
return
h[0];
40
return
h;
41
}
Callers
2
enforceApiKey
Function · 0.85
extractBearer
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected