Alllplmpliedl manual JWT check and restored all driver fields68j2
This commit is contained in:
@@ -56,7 +56,7 @@ class PaymentTokenController extends Controller
|
|||||||
// بناء التوكن بنفس الهيكل المطلوب من V1
|
// بناء التوكن بنفس الهيكل المطلوب من V1
|
||||||
$payload = [
|
$payload = [
|
||||||
'user_id' => $userId, // V1 يستخرج: $decoded->user_id
|
'user_id' => $userId, // V1 يستخرج: $decoded->user_id
|
||||||
'iss' => 'Tripz', // V1 يتحقق: $decoded->iss === 'Tripz'
|
'iss' => 'Tripz-Wallet', // V1 يتحقق: $decoded->iss === 'Tripz'
|
||||||
'aud' => $audience,
|
'aud' => $audience,
|
||||||
'iat' => time(),
|
'iat' => time(),
|
||||||
'exp' => time() + 120, // زيادة الوقت قليلاً لـ 120 ثانية
|
'exp' => time() + 120, // زيادة الوقت قليلاً لـ 120 ثانية
|
||||||
|
|||||||
Reference in New Issue
Block a user