Update: 2026-06-16 02:52:06
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user