UNPKG

auth0-custom-db-testharness

Version:

deploy, execute, and test the output of Auth0 Custom DB scripts using a webtask sandbox environment.

17 lines (14 loc) 382 B
function getByEmail(email, callback) { var IDP_ENDPOINT = configuration.ENDPOINT_LOCAL + "/api/v1/account"; request.get({ url: IDP_ENDPOINT + '?email=' + email }, function (err, response, body) { if (err) { return callback(err); } if (response.statusCode != 200) { return callback(new Error('Forbidden')); } callback(null, body); }); }