The project that I’m working on needs to verify a user via SMS (Passwordless). I’m sending the code to the user’s phone via /passwordless/start
API. But now I’m unable to verify the code via /oauth/ro
because this feature is not supported anymore. I tried with oauth/token
with body request something like this:
{
"client_id":"x",
"client_secret":"x",
"connection":"sms",
"username": "+11111111",
"grant_type": "password",
"password":"512203"
}
But got:
{
"error": "server_error",
"error_description": "Authorization server not configured with default connection."
}
I started to wonder if SMS code verification is still possible because I didn’t find any relevant docs. I know that this is possible with Lock library, but our project needs to handle this on the backend (NodeJS).