Skip to content

Customize the unit of timestamp/exp in payload #368

Answered by oxisto
icbd asked this question in Q&A
Discussion options

You must be logged in to vote

You can't. The unit of exp is fixed to seconds. The type of the field is a NumericDate, which is defined in https://datatracker.ietf.org/doc/html/rfc7519#section-2 as:

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.  This is equivalent to the IEEE Std 1003.1,
      2013 Edition [[POSIX.1](https://datatracker.ietf.org/doc/html/rfc7519#ref-POSIX.1)] definition "Seconds Since the Epoch", in
      which each day is accounted for by exactly 86400 seconds, other
      than that non-integer values can be represented.  See [RFC 3339](https://datatracker.ietf.org/doc/html/r…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by oxisto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #367 on December 15, 2023 19:35.