Skip to main content

Function: jwtExp()

jwtExp(token): number

Defined in: core/nfl_auth.ts:68

Best-effort read of a JWT's exp claim (unix seconds); null if unparseable.

The token is header.payload.signature; the payload segment is base64url decoded and its exp claim returned. No signature verification — only the expiry is needed to schedule renewal. Exported for unit testing.

Parameters

token

string

Returns

number