This commit is contained in:
Hamza-Ayed
2026-05-01 00:51:24 +03:00
parent cf80244005
commit 5913690bec

View File

@@ -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);