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.
Parameters
Section titled “Parameters”header
Section titled “header”string | null
Returns
Section titled “Returns”string | undefined