diff options
author | Matthew Miller <matthew@millerti.me> | 2020-05-22 13:39:32 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-05-22 13:39:32 -0700 |
commit | cf910f5252c475a704db8b49e0edb09b7d6dddfa (patch) | |
tree | c9818f6af86a4d957667ef541a03319f0b728a60 | |
parent | 6a8393f8d2d9e0857ae773f482aa7c89cd3548d8 (diff) |
Add in-memory “DB” for devices per user
-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', |