summaryrefslogtreecommitdiffhomepage
path: root/example/index.js
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-05-22 13:40:30 -0700
committerMatthew Miller <matthew@millerti.me>2020-05-22 13:40:30 -0700
commita47702c4301fba2a017a26de35ffda5c74650b30 (patch)
tree0dd3b998ea1f5aea8cf5a9d461faf0fbb4689a56 /example/index.js
parent32091c76bb4ca45c0e4efd3df87bb5b875c05baa (diff)
Add some section dividers
Diffstat (limited to 'example/index.js')
-rw-r--r--example/index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/example/index.js b/example/index.js
index 5a0b8db..c686b3c 100644
--- a/example/index.js
+++ b/example/index.js
@@ -40,6 +40,9 @@ const inMemoryUserDeviceDB = {
],
};
+/**
+ * Registration (a.k.a. "Attestation")
+ */
app.get('/generate-attestation-options', (req, res) => {
res.send(generateAttestationOptions(
'WebAuthntine Example',
@@ -81,6 +84,9 @@ app.post('/verify-attestation', (req, res) => {
res.send({ verified });
});
+/**
+ * Login (a.k.a. "Assertion")
+ */
app.get('/generate-assertion-options', (req, res) => {
// You need to know the user by this point
const user = inMemoryUserDeviceDB[userId];