Auth0 Home Blog Docs

Unauthorized error messages on login page



Is the sign in page allowed to show unauthorized errors from rules? I’ve used the code below with the hosted login page with Custom UI configurations and it has not worked.

function (user, context, callback) {
return callback(new UnauthorizedError('This is an error'));

Maybe it’s supposed to display the error message within the <div id="error-message" class="alert alert-danger"></div> tags like this image?