I am implementing Auth0’s Passwordless with New Universal Login. It works fine with email (connection=“email”).
However, when I change the connection to “sms”, I receive a 400 from the POST …/u/login/passwordless-sms-challenge?state=… endpoint when attempting to verify my OTP SMS code. I cannot find any documentation available on this passwordless-sms-challenge endpoint to troubleshoot this error.
Verbose Description of the flow:
I navigate to my app, running on localhost.
Are you seeing any info about the error in your dashboard logs? Sometimes you can find a more descriptive error. Also, does the error contain any more info? Like a message stating the problem?
For the first issue, I had to manually append my country code in front of my phone # for the SMS to send (for example ‘1{myPhone#}’ would send an SMS OTP to my phone.
However, we discovered that it works if we append a ‘+’ in front of the country code.
So, ‘+1{myPhoneNumber}’ works (the OTP code successfully validates & we can login to our app).
We can’t roll this out of the box behavior out to production, so we will need to check on Twilio’s side to see what capabilities exist to automatically append this ‘+{countryCode}’ during ingress.
As a point of feedback, this detail would be a useful addition to Auth0’s documentation. I have seen a few forum posts around of people asking for documentation on the /passwordless-sms-challenge endpoint as well.
For the second issue, I disabled all of the brute force protections in the Auth0 panel. The next time my phone identity gets locked out, I will try the management API to see if it works & will report back. Auth0 Management API v2