plain-lunch-50969
04/25/2024, 2:53 PMchilly-king-10285
04/25/2024, 2:53 PMchilly-king-10285
04/25/2024, 2:53 PMtraits section can be used for account recovery, but it does not specify what these other fields could be. The traits section is part of the identity schema and can be customized to include various fields based on your application's requirements. However, the examples provided in the documentation primarily use the email field for account recovery. For instance, the identity schema example provided for account recovery uses the email field: json { "$id": "<https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json>", "$schema": "<http://json-schema.org/draft-07/schema#>", "title": "Person", "type": "object", "properties": { "traits": { "type": "object", "properties": { "email": { "type": "string", "format": "email", "<http://ory.sh/kratos|ory.sh/kratos>": { "credentials": { "password": { "identifier": true } }, "recovery": { "via": "email" } } } } "additionalProperties": false } } } In this schema, the email field is marked for recovery with "recovery": { "via": "email" }. For more details on how to customize the identity schema and use different fields for account recovery, you may want to refer to the [Ory Kratos documentation](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#account-recovery-address).