Created
August 3, 2016 18:36
-
-
Save colllin/12d77e03b6b6f717d5d1fe15b75bf2d4 to your computer and use it in GitHub Desktop.
Auth0 `Get User` database action script NO-OP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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