Skip to content

Instantly share code, notes, and snippets.

@abbaspour
Created August 1, 2018 10:32
Show Gist options
  • Save abbaspour/fc467fa5136523ccd0c07632ce0ccb1d to your computer and use it in GitHub Desktop.
Save abbaspour/fc467fa5136523ccd0c07632ce0ccb1d to your computer and use it in GitHub Desktop.
Auth0 Lock Display Error Message from Custom DB or Rules
function login (email, password, callback) {
return callback(new UnauthorizedError('custom db error to display in HLP Lock flashMessage'));
}
function (user, context, callback) {
return callback(new UnauthorizedError('rule error to display in embedded Lock (popup mode) flashMessage'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment