-
Notifications
You must be signed in to change notification settings - Fork 376
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
Removed leeway from verify_iat #257
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A test should be added to ensure that the leeway is not applied to the iat
claim when the token is verified.
@@ -87,14 +87,6 @@ module JWT | |||
Verify.verify_iat(payload, options) | |||
end | |||
|
|||
it 'must allow configured leeway' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better to invert one of these tests to ensure that the leeway is ignored.
@ab320012 Thank you for the PR! I added my review. :) Let me know if you have the time to improve that or if any help is needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Thanks, guys! |
Fixes #247.