Skip to content

parseTokenExpiration

parseTokenExpiration(header): string | undefined

Defined in: user/user.ts:25

The expiry GitHub reports in the github-authentication-token-expiration header (2026-11-19 03:46:04 UTC) as ISO 8601, or undefined when the header is missing or is not a date.

string | null

string | undefined