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

Function loginWithOtp

spec/vulnerabilities.spec.js:5079–5089  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5077 expect(otp).toBeDefined();
5078
5079 const loginWithOtp = () =>
5080 request({
5081 method: 'POST',
5082 url: 'http://localhost:8378/1/login',
5083 headers: mfaHeaders,
5084 body: JSON.stringify({
5085 username: 'smsmfauser',
5086 password: 'password123',
5087 authData: { mfa: { token: otp } },
5088 }),
5089 });
5090
5091 const results = await Promise.allSettled(Array(10).fill().map(() => loginWithOtp()));
5092

Callers 1

Calls 1

requestFunction · 0.50

Tested by

no test coverage detected