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

Function serializeUser

packages/cli/src/auth/store.ts:439–446  ·  view source on GitHub ↗
(u: StoredUserInfo)

Source from the content-addressed store, hash-verified

437}
438
439function serializeUser(u: StoredUserInfo): Record<string, unknown> {
440 const user: Record<string, unknown> = { ...(u[UNKNOWN] ?? {}) };
441 if (u.email) user["email"] = u.email;
442 if (u.first_name) user["first_name"] = u.first_name;
443 if (u.last_name) user["last_name"] = u.last_name;
444 if (u.username) user["username"] = u.username;
445 return user;
446}
447
448/**
449 * Legacy-plaintext heuristic. HeyGen API keys come in multiple formats

Callers 1

serializeCredentialsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected