o1egl / paseto

Platform-Agnostic Security Tokens implementation in GO (Golang)
MIT License
833 stars 34 forks source link

Feature: custom error type ErrTokenExpiredError #33

Open hazcod opened 2 years ago

hazcod commented 2 years ago

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).

hazcod commented 2 years ago

FYI @o1egl