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

Function parseDateOrUndef

packages/cli/src/cloud/auth.ts:55–59  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

53}
54
55function parseDateOrUndef(value: string | undefined): Date | undefined {
56 if (!value) return undefined;
57 const d = new Date(value);
58 return Number.isNaN(d.getTime()) ? undefined : d;
59}
60
61/**
62 * Force-refresh the OAuth access token regardless of locally-known

Callers 1

refreshIfNeededFunction · 0.85

Calls 1

getTimeMethod · 0.65

Tested by

no test coverage detected