<@U04UQ68083H> I am taking users email and phone a...
# ory-copilot
f
@chilly-king-10285 I am taking users email and phone as identifier when user sign up, after signing up user only receives email with otp code and a magic url to verify his/her account but don't receive any message to his phone to verify. How to verify phone?
c
A message from kapa.ai
To verify a user's phone number with Ory, you need to have a trait in your identity schema that holds the phone number. This trait must be marked as a verifiable address via the
verification
extension. Here's an example of how to define such a trait in the identity schema:
Copy code
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)