Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: expired token error message #165

Merged
merged 1 commit into from Feb 15, 2022
Merged

fix: expired token error message #165

merged 1 commit into from Feb 15, 2022

Conversation

ydylla
Copy link
Contributor

@ydylla ydylla commented Feb 13, 2022

Hi,
I noticed that the arguments in the error message for expired tokens from RegisteredClaims are in the wrong order.
Currently, it prints 13.3528857s by token is expired but it should probably be token is expired by 13.3528857s.
This pull request corrects that.

Edit: Also fixed it in StandardClaims

Copy link

@ripienaar ripienaar left a comment

Choose a reason for hiding this comment

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

LGTM, was about to come send this PR also

Copy link
Collaborator

@oxisto oxisto left a comment

Choose a reason for hiding this comment

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

Looks good.

@mfridman mfridman merged commit 6de17d3 into golang-jwt:main Feb 15, 2022
@ydylla
Copy link
Contributor Author

ydylla commented Feb 15, 2022

Thanks guys 👍

oxisto pushed a commit to moneszarrugh/jwt that referenced this pull request Feb 21, 2023
oxisto pushed a commit to twocs/jwt that referenced this pull request Mar 29, 2023
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.

None yet

4 participants