MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / loadUserInfo

Function loadUserInfo

packages/cli/src/auth/user.ts:90–95  ·  view source on GitHub ↗
(path = credentialPath())

Source from the content-addressed store, hash-verified

88 * the file is clean.
89 */
90export 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

Callers 2

user.test.tsFile · 0.85
loadPersistedUserFunction · 0.85

Calls 3

credentialPathFunction · 0.85
readStoreFunction · 0.85
isUserInfoEmptyFunction · 0.85

Tested by

no test coverage detected