Function: retiredKeyVouches()
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
| Parameter | Type |
|---|---|
claims | { exp?: unknown; iat?: unknown; } |
claims. | unknown |
claims. | unknown |
retiredAt | number |
ReturnsLink to this section
boolean