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).
Parameters
Section titled “Parameters”tokenSet
Section titled “tokenSet”The token set to check.
clockSkewSeconds?
Section titled “clockSkewSeconds?”number = 0
Optional allowance for clock drift between client and server (defaults to 0).
Returns
Section titled “Returns”boolean
true if the current time is at or past the adjusted expiry time.