Skip to content

Feature: custom error type ErrTokenExpiredError#33

Open
hazcod wants to merge 2 commits intoo1egl:masterfrom
hazcod:feat/ErrTokenExpiredError
Open

Feature: custom error type ErrTokenExpiredError#33
hazcod wants to merge 2 commits intoo1egl:masterfrom
hazcod:feat/ErrTokenExpiredError

Conversation

@hazcod
Copy link
Copy Markdown

@hazcod hazcod commented Aug 31, 2021

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
Copy link
Copy Markdown
Author

hazcod commented Sep 14, 2021

FYI @o1egl

Copy link
Copy Markdown
Owner

@o1egl o1egl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add test cases for it

Copy link
Copy Markdown

@Gnarnar Gnarnar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Workflows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants