Skip to content

Commit

Permalink
fix clockSkew not taken into account in some case
Browse files Browse the repository at this point in the history
  • Loading branch information
mu4ddi3 authored Oct 29, 2018
1 parent c7991e9 commit 4571d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Services/JWSProvider/LcobucciJWSProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private function sign(Builder $jws)

private function verify(Token $jwt)
{
if (!$jwt->validate(new ValidationData())) {
if (!$jwt->validate(new ValidationData(time() + $this->clockSkew))) {
return false;
}

Expand Down

0 comments on commit 4571d0c

Please sign in to comment.