summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-05-22 18:06:22 -0700
committerMatthew Miller <matthew@millerti.me>2020-05-22 18:06:22 -0700
commitacd96bcd843baf4fa601594543aa22f5a52537cf (patch)
tree7d68b57fa35359100ca0e2bc4fd86a579cd7024c
parent31f91ca605804db22a45853295b48eb4e49f6567 (diff)
Remove some console logging from example server
-rw-r--r--example/index.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/example/index.js b/example/index.js
index 67bcced..3a58719 100644
--- a/example/index.js
+++ b/example/index.js
@@ -74,8 +74,6 @@ app.post('/verify-attestation', (req, res) => {
const verification = verifyAttestationResponse(body, `https://${origin}`);
- console.log('verification:', verification);
-
const { verified, authenticatorInfo } = verification;
if (verified) {
@@ -83,12 +81,7 @@ app.post('/verify-attestation', (req, res) => {
const user = inMemoryUserDeviceDB[userId];
const existingDevice = user.find((device) => device.base64CredentialID === base64CredentialID);
- if (existingDevice) {
- console.log('device already exists, skipping insertion');
- console.debug(existingDevice);
- } else {
- console.log(`storing public key, credential ID, and counter for ${userId}`);
-
+ if (!existingDevice) {
inMemoryUserDeviceDB[userId].push({
base64PublicKey,
base64CredentialID,