Update: 2026-07-22 00:32:07

This commit is contained in:
Hamza-Ayed
2026-07-22 00:32:07 +03:00
parent 2b302db1dd
commit 17abdada10
2 changed files with 50 additions and 10 deletions
+6 -2
View File
@@ -48,7 +48,11 @@ function getMockJwt(userId, role = 'driver') {
console.error(`[Error] JWT generation returned empty for ${role} ${userId}: ${output}`);
return { jwt: '', fp: '' };
}
return { jwt: parsed.jwt, fp: parsed.fp || `mock_device_fp_${userId}` };
return {
jwt: parsed.jwt,
fp: parsed.fp || `mock_device_fp_${userId}`,
price_token: parsed.price_token || ''
};
} catch (err) {
console.error(`[Error] Failed to generate JWT for ${role} ${userId}:`, err.message);
return { jwt: '', fp: '' };
@@ -130,7 +134,7 @@ async function simulateTrip(tripIndex) {
start_location: '31.95,35.91',
end_location: '31.96,35.92',
price: '5',
price_token: 'dummy',
price_token: passengerAuth.price_token || 'dummy',
distance: '2',
carType: 'Economy',
passenger_name: 'Test Passenger',