fix: remove send-otp from simulation to bypass rate limiter

This commit is contained in:
Hamza-Ayed
2026-07-18 22:11:56 +03:00
parent fe376f8aa6
commit be18050bf2
-2
View File
@@ -37,7 +37,6 @@ async function run() {
// 1. Authenticate Demo Driver // 1. Authenticate Demo Driver
const driverPhone = '+962790000001'; const driverPhone = '+962790000001';
console.log(`[Driver] Authenticating Demo Driver (${driverPhone})...`); console.log(`[Driver] Authenticating Demo Driver (${driverPhone})...`);
await api('POST', '/auth/send-otp', { phone: driverPhone });
const driverAuth = await api('POST', '/auth/verify-otp', { phone: driverPhone, code: '1234' }); const driverAuth = await api('POST', '/auth/verify-otp', { phone: driverPhone, code: '1234' });
const driverToken = driverAuth.access_token; const driverToken = driverAuth.access_token;
console.log('\x1b[32m[Driver] Authenticated successfully!\x1b[0m\n'); console.log('\x1b[32m[Driver] Authenticated successfully!\x1b[0m\n');
@@ -45,7 +44,6 @@ async function run() {
// 2. Authenticate Demo Rider // 2. Authenticate Demo Rider
const riderPhone = '+962790000002'; const riderPhone = '+962790000002';
console.log(`[Rider] Authenticating Demo Rider (${riderPhone})...`); console.log(`[Rider] Authenticating Demo Rider (${riderPhone})...`);
await api('POST', '/auth/send-otp', { phone: riderPhone });
const riderAuth = await api('POST', '/auth/verify-otp', { phone: riderPhone, code: '1234' }); const riderAuth = await api('POST', '/auth/verify-otp', { phone: riderPhone, code: '1234' });
const riderToken = riderAuth.access_token; const riderToken = riderAuth.access_token;
console.log('\x1b[32m[Rider] Authenticated successfully!\x1b[0m\n'); console.log('\x1b[32m[Rider] Authenticated successfully!\x1b[0m\n');