Skip to content
On this page

Function: retiredKeyVouches()

TypeScript
function retiredKeyVouches(claims: {
  exp?: unknown;
  iat?: unknown;
}, retiredAt: number): boolean;

Defined in: retired-key.ts:11 (opens in a new tab)

Does a key retired at retiredAt (unix seconds) still vouch for a token with these claims? Only for one it signed before it retired, valid for no longer than ochk.io lets any token live. iat and exp are both the signer's own word, so the lifetime bound is what ends a retired key's tokens: none outlives retiredAt + TOKEN_MAX_LIFETIME_SEC.

ParametersLink to this section

ParameterType
claims{ exp?: unknown; iat?: unknown; }
claims.exp?unknown
claims.iat?unknown
retiredAtnumber

ReturnsLink to this section

boolean