Alllplmpliedl manual JWT check and restored all driver fields68j2

This commit is contained in:
Hamza-Ayed
2026-04-26 02:43:37 +03:00
parent d0211ecb86
commit 27e9d89af3
2 changed files with 3 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ class PaymentTokenController extends Controller
// بناء التوكن بنفس الهيكل المطلوب من V1
$payload = [
'user_id' => $userId, // V1 يستخرج: $decoded->user_id
'iss' => 'Tripz-Wallet', // V1 يتحقق: $decoded->iss === 'Tripz'
'iss' => 'Tripz-Wallet', // V1 يتحقق: $decoded->iss === 'Tripz-Wallet'
'aud' => $audience,
'iat' => time(),
'exp' => time() + 120, // زيادة الوقت قليلاً لـ 120 ثانية