I am trying to test the passswordless connection for my regular web application but have so far been unsuccessful. Can someone let me know if there are configuration settings in my app to check? I continue to get the message: {‘error’: ‘bad.connection’, ‘error_description’: ‘Unknown error’}, which I realize isn’t informative, so it’s been difficult to debug. Thank you.
url = "AUTH0_DOMAIN" + "/passwordless/start"
payload = {
"client_id": f"{CLIENT_ID}",
"client_secret": f"{CLIENT_SECRET}",
"connection": "sms",
"phone_number": f"{number}",
"send": "code",
}
headers = { 'content-type': "application/json" }
resp = requests.post(url, payload, headers)
data = resp.json()
print(data)