few-oyster-74399
06/19/2024, 10:44 AMchilly-king-10285
06/19/2024, 10:44 AMchilly-king-10285
06/19/2024, 10:44 AMfew-oyster-74399
06/19/2024, 10:49 AMchilly-king-10285
06/19/2024, 10:49 AMchilly-king-10285
06/19/2024, 10:49 AMpassword
, code
for one-time password login, or webauthn
for WebAuthn login. Here are examples of setting the identifier field: For password login: json { "<http://ory.sh/kratos|ory.sh/kratos>": { "credentials": { "password": { "identifier": true } } } }
For one-time code login: json { "<http://ory.sh/kratos|ory.sh/kratos>": { credentials: { code: { identifier: true, via: "email", }, }, }, }
For WebAuthn login: json { "<http://ory.sh/kratos|ory.sh/kratos>": { "credentials": { "webauthn": { "identifier": true } } } }
If you want to restrict changes to these fields, you might need to customize the flow or the Identity Schema. It's recommended to check the [Ory Kratos documentation](https://www.ory.sh/docs/kratos/) or reach out to the Ory community for more specific guidance.