“message”: “Payload validation error: ‘String does not match pattern ^+[0-9]{1,15}$: 5511934712378’ on property phone_number (The user’s phone number (following the E.164 recommendation), only valid for users from SMS connections).”,
“errorCode”: “invalid_body”
You cannot add a phone_number root attribute to a username/password connection. You need to create a user with "connection":"sms" to make it possible to authenticate via phone number OR create a user with email/password.
You can use account linking to connect the two accounts in different connections:
If you would like to set up sms authentication it can be done fairly simply by following our docs:
No. As I stated above, you will need two seperate users, one user for sms, one user for username and password, and you must link their accounts using account linking.
You are trying to add a user to a connection that you have not created.
Here the system user, I was unable to login using the code sent by SMS
As the explanation is not clear for user login via SMS code and just send me the doc, I’m sure I know what I’m doing and will give the expected result.