This commit is contained in:
Hamza-Ayed
2026-04-29 15:01:11 +03:00
parent 10d69033dd
commit c339e87aeb
8 changed files with 122 additions and 40 deletions

View File

@@ -76,8 +76,7 @@ try {
'jti' => bin2hex(random_bytes(16)),
];
$keyPathPay = getenv('SECRET_KEY_PAY_PATH');
$secretKey = trim(file_get_contents($keyPathPay));
$secretKey = trim((string)@file_get_contents('/home/intaleq-api/.secret_key_pay'));
$jwt = Firebase\JWT\JWT::encode($payload, $secretKey, 'HS256');
$hmac = hash_hmac('sha256', $id, getenv('SECRET_KEY_HMAC'));