full-notebook-65880
07/29/2024, 5:00 AMchilly-king-10285
07/29/2024, 5:00 AMchilly-king-10285
07/29/2024, 5:00 AMverification extension. Here's an example of how to define such a trait in the identity schema: json { "$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": { "email": { "type": "string", "title": "E-Mail", "format": "email", "<http://ory.sh/kratos|ory.sh/kratos>": { "credentials": { "password": { "identifier": true } }, "verification": { "via": "email" } } }, "phone": { "type": "string", "title": "Phone number", "format": "tel", "<http://ory.sh/kratos|ory.sh/kratos>": { "verification": { "via": "sms" } } } }, "additionalProperties": false } } } After setting up the identity schema, you need to configure an SMS channel in the Ory configuration. You can find more information about this in the [SMS documentation](https://www.ory.sh/docs/kratos/emails-sms/sending-sms). Source: [Phone number verification](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#phone-number-verification)