diff options
Diffstat (limited to 'example/index.js')
-rw-r--r-- | example/index.js | 6 |
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]; |