great-laptop-90610
10/15/2024, 8:52 AMwebauthn.identifier: true
, which will use the nickname trait as its unique identifier. This creates two identity_credential_identifier
for each sign up, one for passkey with a random hash as identifier and one for webauthn using the nickname input from the user.
My only auth method will be passkey and nothing else. Is it correct to use "webauthn" only as a way to validate uniqueness?
identity.schema.json
{
"$schema": "<http://json-schema.org/draft-07/schema#>",
"title": "Person",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"nickname": {
"type": "string",
"title": "Nickname",
"<http://ory.sh/kratos|ory.sh/kratos>": {
"credentials": {
"passkey": {
"display_name": true
},
"webauthn": {
"identifier": true
}
}
}
}
},
"required": ["nickname"],
"additionalProperties": false
}
}
}