I am trying to display a custom error signifying that the wrong one time code was entered using passwordless login with lock. The error returned is:
{"error":"access_denied","error_description":"Wrong email or verification code."}
The dictionary file for lock v11 doesn’t specify “access_denied” as an option. Also, the documentation says to use the following for an invalid email:
passwordless: {
'bad.email': 'The email is invalid'
}
However, this doesn’t work because the error that is returned for an invalid email is instead ‘bad.connection’, and so I’ve had to use following:
passwordless: {
'bad.connection': 'The email is invalid',
},
Any help would be appreciated, thank you.