Closed consciousnessdev closed 1 month ago
Hi @consciousnessdev
These are correct NumericDate
values as per RFC 7519^jwt. NumericDate
is seconds
since UNIX epoch, whereas the Date
constructor value
argument is milliseconds
since UNIX epoch.
NumericDate
A JSON numeric value representing the number of seconds from
1970-01-01T00:00:00Z UTC until the specified UTC date/time,
ignoring leap seconds.
What happened?
When i try test Sign & Verify JWT with jest based on examples
it produce wrong expired date (1970-01-20 ...)
Version
5.9.2
Runtime
Node.js
Runtime Details
v20.15.0
Code to reproduce
Required
Expected