MCPcopy 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
71function normalizeAuthMode(val) {
72 const mode = str(val, "").toLowerCase();
73 return ["trusted", "api_key"].includes(mode) ? mode : "";
74}
75
76export function loadConfig() {
77 const creds = resolveOpenVikingCredentials();

Callers 1

loadConfigFunction · 0.70

Calls 1

strFunction · 0.70

Tested by

no test coverage detected