diff options
author | Matthew Miller <matthew@millerti.me> | 2022-08-16 23:24:06 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2022-08-16 23:24:06 -0700 |
commit | 24d1442dd57db66038ce42575d387f86511b7bfb (patch) | |
tree | a948b34444dd467729aad79f3232c3a1b64e621f /example/index.ts | |
parent | 95cb2107d15ae15994367cc99040720ae186c9bd (diff) |
Update example to v6.0.0
Diffstat (limited to 'example/index.ts')
-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 9d3c903..330b84b 100644 --- a/example/index.ts +++ b/example/index.ts @@ -230,7 +230,7 @@ app.get('/generate-authentication-options', (req, res) => { res.send(options); }); -app.post('/verify-authentication', (req, res) => { +app.post('/verify-authentication', async (req, res) => { const body: AuthenticationCredentialJSON = req.body; const user = inMemoryUserDeviceDB[loggedInUserId]; @@ -261,7 +261,7 @@ app.post('/verify-authentication', (req, res) => { authenticator: dbAuthenticator, requireUserVerification: true, }; - verification = verifyAuthenticationResponse(opts); + verification = await verifyAuthenticationResponse(opts); } catch (error) { const _error = error as Error; console.error(_error); |