diff options
author | Matthew Miller <matthew@millerti.me> | 2023-12-28 19:43:50 -0800 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2023-12-28 19:43:50 -0800 |
commit | fe3472585ecc7be7d90d064581d3f60e65a74af3 (patch) | |
tree | 0a0c3e390e747070f6621b0284425a8c813ed7d2 /example/index.ts | |
parent | 3f9b4c2757087509ee7f9587d75116beedef8fcd (diff) |
Add links to passkeys.dev about "preferred"
Diffstat (limited to 'example/index.ts')
-rw-r--r-- | example/index.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/example/index.ts b/example/index.ts index c11550c..a37dc52 100644 --- a/example/index.ts +++ b/example/index.ts @@ -143,6 +143,11 @@ app.get('/generate-registration-options', async (req, res) => { })), authenticatorSelection: { residentKey: 'discouraged', + /** + * Wondering why user verification isn't required here? See here: + * + * https://passkeys.dev/docs/use-cases/bootstrapping/#a-note-about-user-verification + */ userVerification: 'preferred', }, /** @@ -227,6 +232,11 @@ app.get('/generate-authentication-options', async (req, res) => { type: 'public-key', transports: dev.transports, })), + /** + * Wondering why user verification isn't required here? See here: + * + * https://passkeys.dev/docs/use-cases/bootstrapping/#a-note-about-user-verification + */ userVerification: 'preferred', rpID, }; |