paseto
paseto copied to clipboard
Feature: custom error type ErrTokenExpiredError
This changes the token_validator to return a ErrTokenExpiredError instead of ErrTokenValidationError.
This allows us to check for token expiration which differs from a regular token error. (e.g. trigger a refresh).
FYI @o1egl