From 404e2089ebf3acd04ca954c157ef15702fad4a43 Mon Sep 17 00:00:00 2001 From: pronchev Date: Sun, 12 Apr 2026 01:24:19 +0300 Subject: [PATCH] Remove deprecated method --- src/Auth/JwtService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Auth/JwtService.php b/src/Auth/JwtService.php index d7a07ac..8a93416 100644 --- a/src/Auth/JwtService.php +++ b/src/Auth/JwtService.php @@ -28,8 +28,8 @@ final class JwtService $signer = new Sha256(); $key = InMemory::plainText($secret); - $this->jwtConfig = Configuration::forSymmetricSigner($signer, $key); - $this->jwtConfig->setValidationConstraints( + $jwtConfig = Configuration::forSymmetricSigner($signer, $key); + $this->jwtConfig = $jwtConfig->withValidationConstraints( new SignedWith($signer, $key), new StrictValidAt(new class implements ClockInterface { public function now(): DateTimeImmutable