Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/volcengine/OpenViking
/ normalizeAuthMode
Function
normalizeAuthMode
examples/codex-memory-plugin/scripts/config.mjs:71–74 ·
view source on GitHub ↗
(val)
Source
from the content-addressed store, hash-verified
69
}
70
71
function
normalizeAuthMode(val) {
72
const
mode = str(val,
""
).toLowerCase();
73
return
[
"trusted"
,
"api_key"
].includes(mode) ? mode :
""
;
74
}
75
76
export
function
loadConfig() {
77
const
creds = resolveOpenVikingCredentials();
Callers
1
loadConfig
Function · 0.70
Calls
1
str
Function · 0.70
Tested by
no test coverage detected