MCPcopy
hub / github.com/parse-community/parse-server / loginWithRecovery

Function loginWithRecovery

spec/vulnerabilities.spec.js:4881–4895  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

requestFunction · 0.50

Tested by

no test coverage detected