94 chars · 1 line
121 chars · 10 lines
94 chars · 1 line
121 chars · 10 lines
JWT NumericDate unit issue
JWT NumericDate values use seconds from the Unix epoch. If application code inserts a JavaScript millisecond timestamp such as 1700000000000 directly into exp, the decoder interprets those digits as seconds and produces an expiration tens of thousands of years in the future. This tool is free to use. No account or payment is required.
Last updated
The decoder multiplies NumericDate seconds by 1000 only when creating the JavaScript Date used for display. Supplying milliseconds in the claim effectively applies that conversion twice.
The 13-digit value is interpreted as seconds by JWT NumericDate semantics.
"exp":1700000000000Expires: +055840-11-08T22:13:20.000ZCommon questions
The claim contains milliseconds, but JWT NumericDate uses seconds.
Fix the issuer instead. Consumers should not need custom unit guessing for a standard NumericDate claim.
No. Signature and policy verification are still separate requirements.
Debugging a specific JWT issue? Browse JWT troubleshooting.