Sourced from github.com/golang-jwt/jwt/v5's releases.
v5.1.0
What's Changed
- Using jwt's native
ErrInvalidTypeinstead ofjson.UnsupportedTypeErrorby@oxistoin golang-jwt/jwt#316- Fix typos in comments and test names by
@alexandearin golang-jwt/jwt#317- Format: add whitespaces, remove empty lines by
@alexandearin golang-jwt/jwt#319- Refactor example: use io.ReadAll instead of io.Copy by
@alexandearin golang-jwt/jwt#320- Refactor code by using switch instead of if-else by
@alexandearin golang-jwt/jwt#318- A quick way to validate token string by
@dcalskyin golang-jwt/jwt#302- Refactor: remove unnecessary []byte conversion to string by
@alexandearin golang-jwt/jwt#330- Refactor: compare strings with strings.EqualFold by
@alexandearin golang-jwt/jwt#329- Avoid use of json.NewDecoder by
@craigpastroin golang-jwt/jwt#313- Update ParseUnverified godoc by
@duhaesbaertin golang-jwt/jwt#341- Update ci workflows (add go1.21) by
@mfridmanin golang-jwt/jwt#345- Bump actions/checkout from 3 to 4 by
@dependabotin golang-jwt/jwt#346- Key rotation with VerificationKeySet by
@mfridmanin golang-jwt/jwt#344- Add explicit ClaimsValidator implementation check for custom claims by
@epelcin golang-jwt/jwt#343- feat: allow making exp claim required by
@tarekshain golang-jwt/jwt#351- Add error handling to examples by
@craigpastroin golang-jwt/jwt#312New Contributors
@alexandearmade their first contribution in golang-jwt/jwt#317@dcalskymade their first contribution in golang-jwt/jwt#302@craigpastromade their first contribution in golang-jwt/jwt#313@duhaesbaertmade their first contribution in golang-jwt/jwt#341@epelcmade their first contribution in golang-jwt/jwt#343@tarekshamade their first contribution in golang-jwt/jwt#351Full Changelog: https://github.com/golang-jwt/jwt/compare/v5.0.0...v5.1.0
c776b83 Add error handling to examples (#312)908d356 feat: allow making exp claim required (#351)0cb4fa1 docs: fix comment in KeyFuncc80de55 Add explicit ClaimsValidator implementation check for custom claims (#343)1e76606 Key rotation with VerificationKeySet (#344)1691aa9 Bump actions/checkout from 3 to 4 (#346)27ff2f3 Update ci workflows (add go1.21) (#345)6879d2c Update ParseUnverified godoc (#341)78e25d6 Avoid use of json.NewDecoder (#313)8aa5d6c Refactor to use strings.EqualFold (#329)