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

Expiration skew #237

Closed
r4wand opened this issue Aug 28, 2022 · 3 comments · Fixed by #236
Closed

Expiration skew #237

r4wand opened this issue Aug 28, 2022 · 3 comments · Fixed by #236

Comments

@r4wand
Copy link

r4wand commented Aug 28, 2022

Hello! is there a way to add an expiration skew to the jwt.Parse() function to add for example 5 minute buffer for expiry?
let's say the token expired at 12:50:30 and now it is 12:53:05 since we are still within a 5-minute window, the JWT should be accepted as valid.

@oxisto
Copy link
Collaborator

oxisto commented Aug 28, 2022

This is sort of a duplicate of #16 and #98. We are currently working on a v5 of this module and one of the first improvements is a new API for the validation of tokens.

You can find the PR here: #236. Feel free to check it out, but be aware that the API is not stable yet.

@oxisto oxisto linked a pull request Aug 28, 2022 that will close this issue
5 tasks
@oxisto oxisto mentioned this issue Aug 28, 2022
5 tasks
@r4wand
Copy link
Author

r4wand commented Aug 28, 2022

Thanks for the quick reply. I guess I'll have to wait till it's stable. Thanks for your amazing work.

@oxisto
Copy link
Collaborator

oxisto commented Feb 21, 2023

Fixed by #234

@oxisto oxisto closed this as completed Feb 21, 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 a pull request may close this issue.

2 participants