Skip to content

Instantly share code, notes, and snippets.

@colllin
Created August 3, 2016 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colllin/12d77e03b6b6f717d5d1fe15b75bf2d4 to your computer and use it in GitHub Desktop.
Save colllin/12d77e03b6b6f717d5d1fe15b75bf2d4 to your computer and use it in GitHub Desktop.
Auth0 `Get User` database action script NO-OP
function getByEmail (email, callback) {
// This script should retrieve a user profile from your existing database,
// without authenticating the user.
// It is used to check if a user exists before executing flows that do not
// require authentication (signup and password reset).
//
// There are three ways this script can finish:
// 1. A user was successfully found. The profile should be in the following
// format: https://auth0.com/docs/user-profile
// callback(null, profile);
// 2. A user was not found
// callback(null);
// 3. Something went wrong while trying to reach your database:
// callback(new Error("my error message"));
var msg = "Please implement the Get User script for this database connection "
+ "at https://manage.auth0.com/#/connections/database";
return callback(null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment