diff options
Diffstat (limited to 'example/index.js')
-rw-r--r-- | example/index.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/example/index.js b/example/index.js index 8fe64a3..cf5bc43 100644 --- a/example/index.js +++ b/example/index.js @@ -30,6 +30,16 @@ const userId = 'webauthntineInternalUserId'; // A username for the user const username = 'user@webauthntine.foo'; +const inMemoryUserDeviceDB = { + [userId]: [ + { + base64PublicKey: undefined, + base64CredentialID: undefined, + counter: -1, + } +], +}; + app.get('/generate-attestation-options', (req, res) => { res.send(generateAttestationOptions( 'WebAuthntine Example', |