This commit is contained in:
Hamza-Ayed
2026-04-29 01:00:29 +03:00
parent f2ee38ccee
commit 10d69033dd
5 changed files with 33 additions and 5 deletions

View File

@@ -68,7 +68,6 @@ try {
$payload = [
'user_id' => $id,
'sub' => $id,
'fingerPrint' => $fpHash,
'exp' => time() + 300, // 5 دقائق تم إصلاحه
'iat' => time(),
@@ -84,6 +83,7 @@ try {
$hmac = hash_hmac('sha256', $id, getenv('SECRET_KEY_HMAC'));
jsonSuccess([
'status' => 'success',
'jwt' => $jwt,
'hmac' => $hmac,
'expires_in' => 300,