Skip to content

v5.4.0

Latest

Choose a tag to compare

@mfridman mfridman released this 30 Nov 14:15
2f702c7

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).
  • MapClaims with exp set to 0 is now treated as expired, not as a missing claim (#509).
  • An aud claim of an invalid type in MapClaims now returns ErrInvalidType (#511).

New API

  • Constants for registered header parameter names, such as HeaderAlgorithm and HeaderKeyID (#535).

Other changes

  • The token expired error now says how long ago the token expired (#510).

New Contributors

Full Changelog: v5.3.1...v5.4.0