creamy-bear-51329
10/30/2024, 4:07 AMbrief-egg-61061
10/30/2024, 4:07 AMbrief-egg-61061
10/30/2024, 4:07 AMjson { "properties": { "traits": { "type": "object", "properties": { "emails": { "type": "array", "items": { "type": "string", "format": "email", "<http://ory.sh/kratos|ory.sh/kratos>": { "credentials": { "password": { "identifier": true }, // ... other credential types ... }, "recovery": { "via": "email" }, "verification": { "via": "email" } } } } } } } }
In this example, the emails
attribute is defined as an array of strings, each representing an email address. This allows Kratos to store multiple email addresses for a single identity. This structure not only allows for storing multiple values but also enables features like using any of these email addresses for authentication, recovery, and verification processes.