MCPcopy Create free account
hub / github.com/arctic-cli/interface / loadExternalAuth

Function loadExternalAuth

packages/arctic/src/auth/index.ts:344–366  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342 }
343
344 async function loadExternalAuth(): Promise<Record<string, Info>> {
345 const entries: Record<string, Info> = {}
346
347 const codex = await loadCodexAuth()
348 if (codex) {
349 const parsed = Info.safeParse(codex)
350 if (parsed.success) entries.codex = parsed.data
351 }
352
353 const google = await loadGeminiAuth()
354 if (google) {
355 const parsed = Info.safeParse(google)
356 if (parsed.success) entries.google = parsed.data
357 }
358
359 const claude = await loadClaudeAuth()
360 if (claude) {
361 const parsed = Info.safeParse(claude)
362 if (parsed.success) entries.anthropic = parsed.data
363 }
364
365 return entries
366 }
367}

Callers 1

externalFunction · 0.85

Calls 3

loadCodexAuthFunction · 0.85
loadGeminiAuthFunction · 0.85
loadClaudeAuthFunction · 0.85

Tested by

no test coverage detected