Jwt von golang-jwt
v5.4.0
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 https://github.com/golang-jwt/jwt/pull/510
- @c-tonneslan made their first contribution in https://github.com/golang-jwt/jwt/pull/509
- @ultramcu made their first contribution in https://github.com/golang-jwt/jwt/pull/511
Full Changelog: https://github.com/golang-jwt/jwt/compare/v5.3.1...v5.4.0