summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--example/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/index.js b/example/index.js
index f8d7cc7..a8b8afa 100644
--- a/example/index.js
+++ b/example/index.js
@@ -146,7 +146,7 @@ app.get('/generate-attestation-options', (req, res) => {
);
});
-app.post('/verify-attestation', (req, res) => {
+app.post('/verify-attestation', async (req, res) => {
const { body } = req;
const user = inMemoryUserDeviceDB[loggedInUserId];
@@ -155,7 +155,7 @@ app.post('/verify-attestation', (req, res) => {
let verification;
try {
- verification = verifyAttestationResponse({
+ verification = await verifyAttestationResponse({
credential: body,
expectedChallenge,
expectedOrigin: origin,