()
| 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 | } |
no test coverage detected