(path = credentialPath())
| 88 | * the file is clean. |
| 89 | */ |
| 90 | export async function loadUserInfo(path = credentialPath()): Promise<StoredUserInfo | null> { |
| 91 | const { credentials, source } = await readStore(path); |
| 92 | if (source === "absent") return null; |
| 93 | if (!credentials.user || isUserInfoEmpty(credentials.user)) return null; |
| 94 | return credentials.user; |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * Remove the friendly-display block, leaving any co-located credential |
no test coverage detected