MCPcopy Index your code
hub / github.com/thesysdev/openui / normalizeAuth

Function normalizeAuth

packages/openui-cli/src/lib/utils.ts:28–33  ·  view source on GitHub ↗
(a?: string)

Source from the content-addressed store, hash-verified

26}
27
28export function normalizeAuth(a?: string): CloudAuthMethod | undefined {
29 if (!a) return undefined;
30 const v = a.toLowerCase();
31 if (v === "oauth" || v === "manual" || v === "skip") return v;
32 throw new CreateError("bad_args", `unknown --auth "${a}". Use: oauth | manual | skip.`);
33}

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected