Initiate an error popup

Hi,
we’re using auth-lock 11.24.0
we are implementing passwordless login.

Is there a way for us to initiate an error popup in special cases that we find it necessary?
(for example, when user chooses country prefix that is different than +1)

I saw ‘Error Handling’ section here: GitHub - auth0/lock: Auth0’s signin solution
not sure if relevant, and if so, how to use it.

will appreciate any input

thanks!

Hi @nitzan.mazor,

Thanks for reaching out to the Auth0 Community!

Unfortunately, there isn’t a way for the Universal Login to display an error popup. Generally, user access can be managed with an Auth0 Rule or Action.

If there is a specific error you would like to customize, you could change the Language Dictionary Object in your Custom Universal Login Page.

The relevant Passwordless error messages you can customize are the following:

languageDictionary: {
  error:{
    passwordless: {
      'bad.email': 'The email is invalid',
      'bad.phone_number': 'The phone number is invalid',
      'lock.fallback': "We're sorry, something went wrong"
    }
  }
}

Please don’t hesitate to reach out if you have any other questions.

Thank you.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.