isExpiredAt
isExpiredAt(
expiresAt,bufferSeconds?):boolean
Defined in: packages/core/src/token-utils.ts:30
Checks whether a token has expired given an absolute expiration timestamp in seconds.
Returns false if expiresAt is null (the token is treated as non-expiring).
Parameters
Section titled “Parameters”expiresAt
Section titled “expiresAt”number | null
Expiration time as a Unix timestamp in seconds, or null.
bufferSeconds?
Section titled “bufferSeconds?”number = DEFAULT_EXPIRY_BUFFER
Buffer in seconds subtracted from expiry to account for clock skew and network latency.
Returns
Section titled “Returns”boolean
true if the current time is at or past the buffered expiry time.