Skip to content

Commit d74d05e

Browse files
committed
Fix jwtConfiguration
1 parent f7db44f commit d74d05e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Server/Validators/BearerTokenValidator.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ protected function initJwtConfiguration(): void
7575
$this->jwtConfiguration = Configuration::forSymmetricSigner(
7676
$this->moduleConfig->getProtocolSigner(),
7777
InMemory::plainText('empty', 'empty'),
78-
);
79-
80-
/** @psalm-suppress DeprecatedMethod, ArgumentTypeCoercion */
81-
$this->jwtConfiguration->setValidationConstraints(
78+
)->withValidationConstraints(
8279
new StrictValidAt(new SystemClock(new DateTimeZone(date_default_timezone_get()))),
8380
new SignedWith(
8481
$this->moduleConfig->getProtocolSigner(),

0 commit comments

Comments
 (0)