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

iat claim doesn't respect leeway #2091

Open
sotomskir opened this issue Jan 21, 2021 · 0 comments
Open

iat claim doesn't respect leeway #2091

sotomskir opened this issue Jan 21, 2021 · 0 comments

Comments

@sotomskir
Copy link

Subject of the issue

leeway is not respected when iat claim is in the future and InvalidClaimException is thrown

Your environment

Q A
Bug? yes
New Feature? no
Framework Laravel
Framework version 5.8
Package version 1.0.2
PHP version 7.3

Steps to reproduce

Set leeway parameter to 120s. Generate token with iat 60s in the future, and try to verify it

Expected behaviour

Token should be verified.

Actual behaviour

InvalidClaimException is thrown
Invalid value provided for claim ['iat']

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

No branches or pull requests

1 participant