From a88322d8da7e49a8dd2e5499e933a75f4c385c4c Mon Sep 17 00:00:00 2001 From: Andrey Kozlov Date: Mon, 11 Dec 2023 08:34:26 +0400 Subject: [PATCH] Init JWT config with passport public key instead of empty string --- src/Services/Auth/Jwt/JwtTokenGuard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/Auth/Jwt/JwtTokenGuard.php b/src/Services/Auth/Jwt/JwtTokenGuard.php index d3b7af0..0c9eda9 100644 --- a/src/Services/Auth/Jwt/JwtTokenGuard.php +++ b/src/Services/Auth/Jwt/JwtTokenGuard.php @@ -115,7 +115,7 @@ protected function initJwtConfiguration() { $this->jwtConfiguration = Configuration::forSymmetricSigner( new Sha256(), - InMemory::plainText('') + InMemory::plainText($this->publicKey->getKeyContents()) ); $this->jwtConfiguration->setValidationConstraints(