Repository navigation
Behavior changes
This release tightens parsing and validation. Tokens that were accepted before may now be rejected:
- Tokens with line breaks (CR or LF) in any segment are now rejected as malformed (#553).
MapClaimswithexpset to0is now treated as expired, not as a missing claim (#509).- An
audclaim of an invalid type inMapClaimsnow returnsErrInvalidType(#511).
New API
- Constants for registered header parameter names, such as
HeaderAlgorithmandHeaderKeyID(#535).
Other changes
- The token expired error now says how long ago the token expired (#510).
New Contributors
- @TarasHots made their first contribution in #510
- @c-tonneslan made their first contribution in #509
- @ultramcu made their first contribution in #511
Full Changelog: v5.3.1...v5.4.0