Issue with Displaying Custom Error Message in Action

Hi everyone,

I’m in the process of converting rules to actions. Previously, I had a rule that would throw an ‘Unauthorized’ error with a custom message, which would be displayed on the login page. However, after converting this rule to an action and using api.access.deny with the same message, the login page no longer displays the custom error message. Instead, it shows a generic ‘wrong password and email’ message.

The custom error message is successfully sent from the action and appears in the logs. However, the frontend does not recognize this specific error and instead falls back to displaying a generic error message provided by the Auth0 Lock library, likely due to the lack of custom error handling code in the frontend.
It is unclear whether this can be handled directly in the Auth0 action.

1 Like