diff options
author | nflaig <nflaig@protonmail.com> | 2022-07-05 15:33:29 +0200 |
---|---|---|
committer | nflaig <nflaig@protonmail.com> | 2022-07-05 15:33:29 +0200 |
commit | c25a50cb6f94857b2d4995139408e7d76f2c8fc8 (patch) | |
tree | d09a0ae36eec01459e624cc4f9aff60106e3b27c /example/index.ts | |
parent | d0702c6005fb18e98327dbf3e23a5f573e2c90f1 (diff) |
Fix credential ID comparison in example
Diffstat (limited to 'example/index.ts')
-rw-r--r-- | example/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/index.ts b/example/index.ts index 11e7588..9d3c903 100644 --- a/example/index.ts +++ b/example/index.ts @@ -182,7 +182,7 @@ app.post('/verify-registration', async (req, res) => { if (verified && registrationInfo) { const { credentialPublicKey, credentialID, counter } = registrationInfo; - const existingDevice = user.devices.find(device => device.credentialID === credentialID); + const existingDevice = user.devices.find(device => device.credentialID.equals(credentialID)); if (!existingDevice) { /** |