diff options
author | Matthew Miller <matthew@millerti.me> | 2023-12-28 19:40:47 -0800 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2023-12-28 19:40:47 -0800 |
commit | 3f9b4c2757087509ee7f9587d75116beedef8fcd (patch) | |
tree | b310de2ab0cf120cde039cc104ef1e4323dae894 | |
parent | cdc97ac30a5ac3e3f5e57e792cc70a82aae48af4 (diff) |
Do the same for authentication
-rw-r--r-- | example/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/index.ts b/example/index.ts index c748145..c11550c 100644 --- a/example/index.ts +++ b/example/index.ts @@ -227,7 +227,7 @@ app.get('/generate-authentication-options', async (req, res) => { type: 'public-key', transports: dev.transports, })), - userVerification: 'required', + userVerification: 'preferred', rpID, }; @@ -273,7 +273,7 @@ app.post('/verify-authentication', async (req, res) => { expectedOrigin, expectedRPID: rpID, authenticator: dbAuthenticator, - requireUserVerification: true, + requireUserVerification: false, }; verification = await verifyAuthenticationResponse(opts); } catch (error) { |