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

Function getValidatorForProvider

src/Adapters/Auth/index.js:214–222  ·  view source on GitHub ↗
(provider)

Source from the content-addressed store, hash-verified

212 };
213 // To handle the test cases on configuration
214 const getValidatorForProvider = function (provider) {
215 if (provider === 'anonymous' && !_enableAnonymousUsers) {
216 return { validator: undefined };
217 }
218 const authAdapter = loadAuthAdapter(provider, authOptions);
219 if (!authAdapter) { return; }
220 const { adapter, appIds, providerOptions } = authAdapter;
221 return { validator: authDataValidator(provider, adapter, appIds, providerOptions), adapter };
222 };
223
224 const runAfterFind = async (req, authData) => {
225 if (!authData) {

Callers 1

runAfterFindFunction · 0.85

Calls 2

loadAuthAdapterFunction · 0.85
authDataValidatorFunction · 0.85

Tested by

no test coverage detected