Documentation
¶
Overview ¶
Package jwtdate converts JWT NumericDates (RFC 7519 §2) to times, refusing the values time.Unix and Duration arithmetic can't hold: a date near int64's maximum wraps into the far past, and the age of one far in the future saturates, so an iat or nbf there would pass a freshness check.
Index ¶
Constants ¶
View Source
const Max = 253402300799
Max is the latest NumericDate accepted: 9999-12-31T23:59:59Z.
Variables ¶
View Source
var ErrOutOfRange = errors.New("jwtdate: NumericDate out of range")
ErrOutOfRange is returned for a NumericDate before 1970 or after Max, or not a finite number.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.