What's Changed
- Using jwt's native
ErrInvalidTypeinstead ofjson.UnsupportedTypeErrorby @oxisto in https://github.com/golang-jwt/jwt/pull/316 - Fix typos in comments and test names by @alexandear in https://github.com/golang-jwt/jwt/pull/317
- Format: add whitespaces, remove empty lines by @alexandear in https://github.com/golang-jwt/jwt/pull/319
- Refactor example: use io.ReadAll instead of io.Copy by @alexandear in https://github.com/golang-jwt/jwt/pull/320
- Refactor code by using switch instead of if-else by @alexandear in https://github.com/golang-jwt/jwt/pull/318
- A quick way to validate token string by @dcalsky in https://github.com/golang-jwt/jwt/pull/302
- Refactor: remove unnecessary []byte conversion to string by @alexandear in https://github.com/golang-jwt/jwt/pull/330
- Refactor: compare strings with strings.EqualFold by @alexandear in https://github.com/golang-jwt/jwt/pull/329
- Avoid use of json.NewDecoder by @craigpastro in https://github.com/golang-jwt/jwt/pull/313
- Update ParseUnverified godoc by @duhaesbaert in https://github.com/golang-jwt/jwt/pull/341
- Update ci workflows (add go1.21) by @mfridman in https://github.com/golang-jwt/jwt/pull/345
- Bump actions/checkout from 3 to 4 by @dependabot in https://github.com/golang-jwt/jwt/pull/346
- Key rotation with VerificationKeySet by @mfridman in https://github.com/golang-jwt/jwt/pull/344
- Add explicit ClaimsValidator implementation check for custom claims by @epelc in https://github.com/golang-jwt/jwt/pull/343
- feat: allow making exp claim required by @tareksha in https://github.com/golang-jwt/jwt/pull/351
- Add error handling to examples by @craigpastro in https://github.com/golang-jwt/jwt/pull/312
New Contributors
- @alexandear made their first contribution in https://github.com/golang-jwt/jwt/pull/317
- @dcalsky made their first contribution in https://github.com/golang-jwt/jwt/pull/302
- @craigpastro made their first contribution in https://github.com/golang-jwt/jwt/pull/313
- @duhaesbaert made their first contribution in https://github.com/golang-jwt/jwt/pull/341
- @epelc made their first contribution in https://github.com/golang-jwt/jwt/pull/343
- @tareksha made their first contribution in https://github.com/golang-jwt/jwt/pull/351
Full Changelog: https://github.com/golang-jwt/jwt/compare/v5.0.0...v5.1.0