authentication

Sign in with SMS OTP

Initiate passwordless authentication by sending a one-time password to the user's phone number. If the user doesn't exist, a new account will be created with the provided options.

post/signin/passwordless/sms

Request body

phoneNumberstring required

Phone number of the user

Example request

{
  "phoneNumber": "+123456789",
  "options": {
    "allowedRoles": [
      "me",
      "user"
    ],
    "defaultRole": "user",
    "displayName": "John Smith",
    "locale": "en",
    "metadata": {
      "firstName": "John",
      "lastName": "Smith"
    },
    "redirectTo": "https://my-app.com/catch-redirection"
  }
}

Response

OTP sent to user's phone number successfully

'OK' required

Changes