Created
August 1, 2018 10:32
-
-
Save abbaspour/fc467fa5136523ccd0c07632ce0ccb1d to your computer and use it in GitHub Desktop.
Auth0 Lock Display Error Message from Custom DB or Rules
This file contains hidden or 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 login (email, password, callback) { | |
return callback(new UnauthorizedError('custom db error to display in HLP Lock flashMessage')); | |
} |
This file contains hidden or 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 (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