Skip to content

Commit 1447dcb

Browse files
authored
fix: document passkey identity schema property as display_name (#1726)
1 parent 20cbbcf commit 1447dcb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/kratos/passwordless/05_passkeys.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ import TabItem from '@theme/TabItem';
8686

8787
### Identity schema
8888

89-
If you want to use a custom identity schema, you must define which field of the identity schema is the primary identifier for the
90-
passkey.
89+
If you want to use a custom identity schema, you must define which field of the identity schema is the display name for the
90+
passkey. If you do not define the `passkey.display_name` field, the `webauthn.identifier` will be used as a fallback. If neither
91+
is defined, the passkey strategy will not work.
9192

9293
```json5 title="identity.schema.json" {16-18}
9394
{
@@ -106,7 +107,7 @@ passkey.
106107
credentials: {
107108
// ...
108109
passkey: {
109-
identifier: true,
110+
display_name: true,
110111
},
111112
},
112113
// ...

0 commit comments

Comments
 (0)