diff --git a/core/Auth/JwtService.php b/core/Auth/JwtService.php index 4e481b0..6de5757 100644 --- a/core/Auth/JwtService.php +++ b/core/Auth/JwtService.php @@ -39,7 +39,7 @@ class JwtService $this->secretKey = trim(file_get_contents('/home/intaleq-api/.secret_key')); $this->hmacSecret = getenv('SECRET_KEY_HMAC') ?: ''; $this->fpPepper = getenv('FP_PEPPER') ?: ''; - $this->issuer = getenv('APP_ISSUER') ; + $this->issuer = (string)(getenv('APP_ISSUER') ?: ''); $this->redis = $redis; } @@ -230,7 +230,7 @@ class JwtService } } - private static function abort(int $code, string $message): never + private static function abort(int $code, string $message) { error_log("[JWT_AUTH_FAILED] Code: $code | Message: $message | IP: " . ($_SERVER['REMOTE_ADDR'] ?? '?') . " | URI: " . ($_SERVER['REQUEST_URI'] ?? '?')); http_response_code($code);