Remove deprecated method
This commit is contained in:
@@ -28,8 +28,8 @@ final class JwtService
|
|||||||
$signer = new Sha256();
|
$signer = new Sha256();
|
||||||
$key = InMemory::plainText($secret);
|
$key = InMemory::plainText($secret);
|
||||||
|
|
||||||
$this->jwtConfig = Configuration::forSymmetricSigner($signer, $key);
|
$jwtConfig = Configuration::forSymmetricSigner($signer, $key);
|
||||||
$this->jwtConfig->setValidationConstraints(
|
$this->jwtConfig = $jwtConfig->withValidationConstraints(
|
||||||
new SignedWith($signer, $key),
|
new SignedWith($signer, $key),
|
||||||
new StrictValidAt(new class implements ClockInterface {
|
new StrictValidAt(new class implements ClockInterface {
|
||||||
public function now(): DateTimeImmutable
|
public function now(): DateTimeImmutable
|
||||||
|
|||||||
Reference in New Issue
Block a user