paseto icon indicating copy to clipboard operation
paseto copied to clipboard

Feature: custom error type ErrTokenExpiredError

Open hazcod opened this issue 2 years ago • 1 comments

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 avatar Aug 31 '21 11:08 hazcod

FYI @o1egl

hazcod avatar Sep 14 '21 07:09 hazcod