Scope
Port Bun corpus position 4006, js/third_party/jsonwebtoken/claim-iat.test.js.
Acceptance criteria
- Signing validates explicit
iatclaims, adds the current timestamp by default, and removes it undernoTimestamp. - Existing finite and non-finite number behavior matches the copied upstream corpus exactly.
- Verification validates
iatwhenmaxAgeis present and supports numeric/timespan max ages, clock timestamps, and clock tolerance. - Max-age failures preserve the concrete JWT error type,
expiredAt, claim/operation metadata, original cause, and operation-aware cause stacks. - String payloads remain unmodified.
- Focused, adjacent JWT, and permanent diagnostic suites pass.