Skip to content

Commit

Permalink
Fix lcobucci/jwt ValidAt
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhelias authored and scheb committed Feb 25, 2023
1 parent 701cdc4 commit 0fd7d13
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"egulias/email-validator": "^3.0",
"endroid/qr-code": "^4.0",
"lcobucci/clock": "^2.0 || ^3.0",
"lcobucci/jwt": "^4.0",
"lcobucci/jwt": "^4.1",
"paragonie/constant_time_encoding": "^2.4",
"spomky-labs/otphp": "^10.0 || ^11.0",
"symfony/dotenv": "^5.4 || ^6.0",
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"ext-json": "*",
"lcobucci/clock": "^2.0 || ^3.0",
"lcobucci/jwt": "^4.0",
"lcobucci/jwt": "^4.1",
"paragonie/constant_time_encoding": "^2.4",
"spomky-labs/otphp": "^10.0 || ^11.0",
"symfony/config": "^5.4 || ^6.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function decodeToken(string $encodedToken): ?Plain
private function validationConstraints(): iterable
{
yield new Constraint\SignedWith($this->configuration->signer(), $this->configuration->signingKey());
yield new Constraint\ValidAt($this->clock); // replace with LooseValidAt once dependency on lcobucci/jwt is bumped up
yield new Constraint\LooseValidAt($this->clock);
yield from $this->configuration->validationConstraints();
}
}
2 changes: 1 addition & 1 deletion src/trusted-device/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"scheb/2fa-bundle": "self.version",
"lcobucci/clock": "^2.0 || ^3.0",
"lcobucci/jwt": "^4.0"
"lcobucci/jwt": "^4.1"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 0fd7d13

Please sign in to comment.