Skip to content

isTokenExpired

isTokenExpired(tokenSet, clockSkewSeconds?): boolean

Defined in: packages/core/src/token-utils.ts:21

Checks whether the access token in a TokenSet has expired. Returns false if no expires_at is set (the token is treated as non-expiring).

TokenSet

The token set to check.

number = 0

Optional allowance for clock drift between client and server (defaults to 0).

boolean

true if the current time is at or past the adjusted expiry time.