MCPcopy Index your code
hub / github.com/parse-community/parse-server / mockCustomAuthenticator

Function mockCustomAuthenticator

spec/helper.js:365–377  ·  view source on GitHub ↗
(id, password)

Source from the content-addressed store, hash-verified

363}
364
365function mockCustomAuthenticator(id, password) {
366 const custom = {};
367 custom.validateAuthData = function (authData) {
368 if (authData.id === id && authData.password.startsWith(password)) {
369 return Promise.resolve();
370 }
371 throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'not validated');
372 };
373 custom.validateAppId = function () {
374 return Promise.resolve();
375 };
376 return custom;
377}
378
379function mockCustom() {
380 return mockCustomAuthenticator('fastrde', 'password');

Callers 1

mockCustomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…