Is it possible to show errors from actions in lock.js?

We are stuck with lock.js universal login, because Auth0 is not supporting passwordless in the new universal login (yet).

But we would like to use the new Actions extensibility features.

I’m for example testing out a “Pre User Registration flow”:

When this action runs, it get’s this response in locks.js (to try out an example of preventing sign-ups):

{"error":"extensibility_error","error_description":"You are not allowed to sign up"}

But lock.js only shows this:

Screen Shot 2021-04-07 at 13.54.57

Would it be possible to the error message from the action here - somehow?

Were you able to figure this out?

No - Auth0 support told me it’s simply not possible :disappointed_relieved:

Hey there!

If you have some time please advocate for that by opening a topic in our feedback category here:

1 Like

I set up Passwordless Email authentication. I implemented a “Pre User Registration” flow action to restrict which email addresses can register. I wasn’t able to show the error message from this action, but using “Customize Login Page” in Universal Login > Advanced Options, I updated languageDictionary to change the error message displayed when an error occurred.

languageDictionary = { title: config.dict.signin.title,
                             error: {
                               passwordless: {
                                 'lock.fallback': “Custom error message"

* List item
* List item