summaryrefslogtreecommitdiffhomepage
path: root/example/index.js
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-05-27 23:05:18 -0700
committerMatthew Miller <matthew@millerti.me>2020-06-07 15:35:28 -0700
commit681b2016581c8165df48de87fb4932ea88d5e9a9 (patch)
tree6e4721b856811dd4e4eb359d4cbaa6f2e209209e /example/index.js
parent3c284547f1fd4ccd1e2dfb96a8eec719a0470571 (diff)
Add dedicated Express app to test FIDO conformance
Diffstat (limited to 'example/index.js')
-rw-r--r--example/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/example/index.js b/example/index.js
index 3d78a9b..f8d7cc7 100644
--- a/example/index.js
+++ b/example/index.js
@@ -9,6 +9,8 @@ const fs = require('fs');
const express = require('express');
+const FIDOConformanceRoutes = require('./fido-conformance');
+
const {
// Registration ("Attestation")
generateAttestationOptions,
@@ -259,6 +261,8 @@ app.post('/verify-assertion', (req, res) => {
res.send({ verified });
});
+app.use('/fido', FIDOConformanceRoutes);
+
https
.createServer(
{