What format is the exp (Expiration Time) claim in a JWT

后端 未结 1 1239
生来不讨喜
生来不讨喜 2020-12-07 22:16

I am using ADAL library to get access token for a resource. Does anyone know what format is the expiration time in ? more specifically "exp" (Expiration time

相关标签:
1条回答
  • 2020-12-07 22:42

    RFC 7519 states that the exp and iat claim values must be NumericDate values.

    NumericDate is the last definition in Section 2. Terminology, and is defined as the number of seconds (not milliseconds) since Epoch:

    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] 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 [RFC3339] for details regarding date/times in general and UTC in particular.

    0 讨论(0)
提交回复
热议问题