fix: ensure Auth.all returns valid objs (#5128)

This commit is contained in:
ry2009
2025-12-07 23:22:21 -05:00
committed by GitHub
parent af1080dd42
commit 725f658260
2 changed files with 10 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ export const AuthListCommand = cmd({
const homedir = os.homedir()
const displayPath = authPath.startsWith(homedir) ? authPath.replace(homedir, "~") : authPath
prompts.intro(`Credentials ${UI.Style.TEXT_DIM}${displayPath}`)
const results = await Auth.all().then((x) => Object.entries(x))
const results = Object.entries(await Auth.all())
const database = await ModelsDev.get()
for (const [providerID, result] of results) {