Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using jwt's native
ErrInvalidType
instead of `json.UnsupportedTypeE…
…rror` (#316) Previously, when parsing claim values, we used `json.UnsupportedTypeError` to denote if a claim string value is not of the correct type. However, this could lead to panics if a nil value is present and the `Error` function of the `json.UnsupportedTypeError` is called, which does not check for nil types. Instead, we just now use `ErrInvalidType` similar to the map claims. Fixes #315
- Loading branch information