From 7a7d1afbecdd169ef6974bcaa488ecf4212c406b Mon Sep 17 00:00:00 2001 From: Arnaud Dagnelies Date: Tue, 2 Jan 2024 15:34:01 +0000 Subject: [PATCH] added "verbose" flag --- README.md | 5 +++-- demos/example-cdn.html | 2 +- dist/webauthn.min.js | 2 +- dist/webauthn.min.js.map | 6 +++--- package-lock.json | 4 ++-- package.json | 2 +- src/authenticators.ts | 4 ++-- src/server.ts | 24 ++++++++++++++++-------- 8 files changed, 29 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index fdf504d..f125392 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ import * as webauthn from '@passwordless-id/webauthn' ```html ``` ### Import @@ -310,7 +310,8 @@ const expected = { challenge: async (challenge) => { /* async call to DB for example */ return true }, origin: (origin) => listOfAllowedOrigins.includes(origin), userVerified: true, // no function allowed here - counter: 123 // optional, no function allowed here + counter: 123, // optional, no function allowed here + verbose: true, // optional, enables debug logs containing sensitive information } ``` diff --git a/demos/example-cdn.html b/demos/example-cdn.html index dec6f3d..03316e7 100644 --- a/demos/example-cdn.html +++ b/demos/example-cdn.html @@ -10,7 +10,7 @@