()
| 4879 | |
| 4880 | // Send concurrent login requests with the same recovery code |
| 4881 | const loginWithRecovery = () => |
| 4882 | request({ |
| 4883 | method: 'POST', |
| 4884 | url: 'http://localhost:8378/1/login', |
| 4885 | headers: mfaHeaders, |
| 4886 | body: JSON.stringify({ |
| 4887 | username: 'mfauser', |
| 4888 | password: 'password123', |
| 4889 | authData: { |
| 4890 | mfa: { |
| 4891 | token: recoveryCode, |
| 4892 | }, |
| 4893 | }, |
| 4894 | }), |
| 4895 | }); |
| 4896 | |
| 4897 | const results = await Promise.allSettled(Array(10).fill().map(() => loginWithRecovery())); |
| 4898 |
no test coverage detected