Skip to content

Commit

Permalink
Update changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisuke Maki committed Oct 25, 2024
1 parent 4aea914 commit 7c57391
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Changes-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ These are changes that are incompatible with the v2.x.x version.
* Validation used to work for `iat`, `nbf`, `exp` fields where these fields were
set to the explicit time.Time{} zero value, but now the _presence_ of these fields matter.

* `jwt.ErrInvalidJWT` has been renamed to `jwt.UnknownPayloadTypeError` to better reflect
what the error means
* Error names have been renamed. For example `jwt.ErrInvalidJWT` has been renamed to
`jwt.UnknownPayloadTypeError` to better reflect what the error means. For other errors,
`func ErrXXXX()` have generally been renamed to `func XXXError()`

* Validation errors are now wrapped. While `Validate()` returns a `ValidateError()` type,
it can also be matched against more specific error types such as `TokenExpierdError()`
using `errors.Is`

## JWS

Expand Down

0 comments on commit 7c57391

Please sign in to comment.