Update: 2026-06-16 02:52:06

This commit is contained in:
Hamza-Ayed
2026-06-16 02:52:06 +03:00
parent 2c657fa0b4
commit c0fe990ebe
11 changed files with 162 additions and 324 deletions

View File

@@ -28,7 +28,14 @@ define("MB", 1048576);
function authenticateJWT(bool $isReg = false): object
{
$secretKey = trim(file_get_contents('/home/intaleq-walletintaleq/.secret_key'));
$keyPath = getenv('WALLET_SECRET_KEY_PATH');
$secretKey = '';
if ($keyPath && file_exists($keyPath)) {
$secretKey = trim(file_get_contents($keyPath));
}
if (!$secretKey) {
$secretKey = getenv('SECRET_KEY') ?: '';
}
$hmacSecret = getenv('SECRET_KEY_HMAC');
$fpPepper = getenv('FP_PEPPER');