Hello team! I am trying to setup Ory with `phone n...
# talk-kratos
s
Hello team! I am trying to setup Ory with
phone number
and
sms
code verification but constantly god error:
credentials.code.via has unknown value "sms"
Did everything according to the doc: https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#phone-number-verification My identity schema looks like this:
Copy code
{
  "$id": "<https://schemas.ory.sh/presets/kratos/identity.email.schema.json>",
  "title": "Person",
  "type": "object",
  "properties": {
    "traits": {
      "type": "object",
      "properties": {
        "phone": {
          "type": "string",
          "title": "Phone number",
          "format": "tel",
          "<http://ory.sh/kratos|ory.sh/kratos>": {
            "credentials": {
              "password": {
                "identifier": true
              },
              "webauthn": {
                "identifier": true
              },
              "code": {
                "via": "sms",
                "identifier": true
              }
            },
            "verification": {
              "via": "sms"
            }
          }
        }
      },
      "required": [
        "phone"
      ],
      "additionalProperties": false
    }
  }
}
Is there any issue with the schema? Sorry for such a dumb question, but I am really stuck 😞 Thanks in adnvance!
w
Are you running the latest version?
s
@wide-dawn-74672 I am on the latest hosted service (I guess). Using Ory cloud not self hosted
s
https://github.com/ory/kratos/issues/3779 I'm having the same issue. I'm running the latest version. I haven't tried older versions to see if any of them work yet