Hello, everyone. Good day. Please, I need help. I...
# talk-kratos
l
Hello, everyone. Good day. Please, I need help. I am trying to perform phone number verification. I am using Ory Kratos v1.1.0. According to the release notes, verification via SMS was recently implemented. (https://github.com/ory/kratos/releases/tag/v1.1.0) I have properly configured my
kratos.yml
config file to utilize an SMS gateway. However, when I attempt to create a verification flow using
{{kratos_URL}}/self-service/verification/api
, it still returns the email attributes in the UI node. Am I missing something? I want to use phone numbers instead of email. Here is my schema file:
Copy code
{
  "$id": "<https://schemas.ory.sh/presets/kratos/quickstart/phone-password/identity.schema.json>",
  "$schema": "<http://json-schema.org/draft-07/schema#>",
  "title": "Person",
  "type": "object",
  "properties": {
    "traits": {
      "type": "object",
      "properties": {
        "name": {
          "type": "object",
          "required": [
            "last",
            "first"
          ],
          "properties": {
            "first": {
              "title": "First Name",
              "type": "string"
            },
            "last": {
              "title": "Last Name",
              "type": "string"
            }
          }
        },
        "phone": {
          "type": "string",
          "format": "tel",
          "title": "Phone number",
          "minLength": 3,
          "<http://ory.sh/kratos|ory.sh/kratos>": {
            "credentials": {
              "password": {
                "identifier": true
              }
            },
            "verification": {
              "via": "sms"
            }
          }
        }
      },
      "required": [
        "phone"
      ],
      "additionalProperties": false
    }
  }
}
d
I’ve run into the same issue and haven’t found a solution yet. It doesn’t seem possible to create a verification flow for a phone number using the self service API, and if using the Self Service UI, there’s no redirection to a verification flow after adding a phone number… https://ory-community.slack.com/archives/C012RJ2MQ1H/p1709162307825059
l
Yes I have tried with that and it didn’t work too. I have just raised an issue on Github regarding this https://github.com/ory/kratos/issues/3799