summaryrefslogtreecommitdiffhomepage
path: root/example/index.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-08-16 23:24:06 -0700
committerMatthew Miller <matthew@millerti.me>2022-08-16 23:24:06 -0700
commit24d1442dd57db66038ce42575d387f86511b7bfb (patch)
treea948b34444dd467729aad79f3232c3a1b64e621f /example/index.ts
parent95cb2107d15ae15994367cc99040720ae186c9bd (diff)
Update example to v6.0.0
Diffstat (limited to 'example/index.ts')
-rw-r--r--example/index.ts4
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);