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

Function userDisplayName

packages/cli/src/auth/user.ts:44–49  ·  view source on GitHub ↗
(u: StoredUserInfo)

Source from the content-addressed store, hash-verified

42 * in heygen-cli.
43 */
44export function userDisplayName(u: StoredUserInfo): string | undefined {
45 if (u.email) return u.email;
46 const name = combineName(u.first_name, u.last_name);
47 if (name) return name;
48 return u.username || undefined;
49}
50
51/**
52 * `"first last"` when both are present; otherwise `first || last || ""`

Callers 5

user.test.tsFile · 0.85
persistedUserJsonFunction · 0.85
collectStatusRowsFunction · 0.85
reportIdentityFunction · 0.85
verifyAndReportFunction · 0.85

Calls 1

combineNameFunction · 0.85

Tested by

no test coverage detected