Crypto Server
    Preparing search index...

    Function exceedsLifetime

    • Whether a verified token's declared lifetime breaks the policy: exp or iat missing or not a number, exp - iat longer than the maximum age, or iat in the future (beyond the clock-skew allowance).

      Parameters

      • payload: AuthPayload
      • maxAgeSeconds: number
      • nowSeconds: number = ...

      Returns boolean