sparse-father-97864
06/07/2024, 6:56 PM"<phonenumber>" is not valid "tel"
chilly-king-10285
06/07/2024, 6:56 PMchilly-king-10285
06/07/2024, 6:57 PM"tel"
format in the Ory Kratos identity schema is used for phone number validation. This validation is done using the Golang [port](https://github.com/nyaruka/phonenumbers) of Google's [libphonenumber](https://github.com/google/libphonenumber). If you're getting an error, it might be due to the phone number format not being compatible with the libphonenumber library. Make sure the phone number you're entering is in a format that the library can validate. Here's an example of how the phone number is defined in the identity schema: json "phone": { "type": "string", "format": "tel", "<http://ory.sh/kratos|ory.sh/kratos>": { "credentials": { "password": { "identifier": true } } } }
In this schema, the "format": "tel"
field enables the validation of phone numbers. If the phone number you're entering doesn't match the expected format, you'll get an error. For more information, you can refer to the [Ory Kratos documentation](https://www.ory.sh/docs/kratos/manage-identities/customize-identity-schema#phone-number).sparse-father-97864
06/07/2024, 7:01 PMchilly-king-10285
06/07/2024, 7:01 PMchilly-king-10285
06/07/2024, 7:01 PM+14155552671
. In the context of the Ory Hydra API, when the phone_number
claim is true, the phone number must be in E.164 format. If the phone number contains an extension, it should be represented using the RFC 3966 format. Here is an example: <tel:+1(604)555-1234|+1 (604) 555-1234>;ext=5678
. For more information, you can refer to the [Ory Hydra API documentation](https://www.ory.sh/docs/hydra/reference/api).sparse-father-97864
06/07/2024, 7:06 PMchilly-king-10285
06/07/2024, 7:06 PMchilly-king-10285
06/07/2024, 7:07 PM"format": "tel"
and "type": "string"
. Here's an example: json "phone": { "type": "string", "format": "tel", "<http://ory.sh/kratos|ory.sh/kratos>": { "credentials": { "password": { "identifier": true } } } }
This configuration enables validation of phone numbers using the Golang port of Google's libphonenumber, as described in the [Ory Kratos documentation](https://www.ory.sh/docs/kratos/manage-identities/customize-identity-schema#phone-number). If the phone number field is correctly configured and you're still encountering issues, it might be helpful to check the error messages you're receiving for more specific details about what might be going wrong. If the issue persists, you might want to reach out to the Ory community or support for further assistance.sparse-father-97864
06/07/2024, 7:08 PMchilly-king-10285
06/07/2024, 7:08 PMchilly-king-10285
06/07/2024, 7:09 PM