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)
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.