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

Function stringField

packages/cli/src/auth/oauth.ts:369–372  ·  view source on GitHub ↗
(obj: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

367}
368
369function stringField(obj: Record<string, unknown>, key: string): string | undefined {
370 const v = obj[key];
371 return typeof v === "string" && v.length > 0 ? v : undefined;
372}
373
374function numericField(obj: Record<string, unknown>, key: string): number | undefined {
375 const v = obj[key];

Callers 1

parseTokenResponseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected