Fixed SQL query columns and switched Wallet token to secret_key_pay
This commit is contained in:
@@ -77,7 +77,9 @@ try {
|
||||
'jti' => bin2hex(random_bytes(16)),
|
||||
];
|
||||
|
||||
$secretKey = trim(file_get_contents('/home/intaleq-api/.secret_key'));
|
||||
$secretKey = file_exists('/home/intaleq-api/.secret_key_pay')
|
||||
? trim(file_get_contents('/home/intaleq-api/.secret_key_pay'))
|
||||
: trim(file_get_contents('/home/intaleq-api/.secret_key'));
|
||||
$jwt = Firebase\JWT\JWT::encode($payload, $secretKey, 'HS256');
|
||||
|
||||
$hmac = hash_hmac('sha256', $id, getenv('SECRET_KEY_HMAC'));
|
||||
|
||||
Reference in New Issue
Block a user