Update: 2026-07-22 00:32:07
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user