summaryrefslogtreecommitdiffhomepage
path: root/example/fido-conformance.js
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-10-07 21:39:01 -0700
committerMatthew Miller <matthew@millerti.me>2020-10-07 21:39:01 -0700
commit8e57b87b70a367a530f6ccece32b072fc0765b25 (patch)
tree5277a1dd54d389b3cdfc2a38b274bc183db6ec9d /example/fido-conformance.js
parentc82266544479e91af6f6ca5dd03a20a76fbb6184 (diff)
Upgrade example to v0.10.0
Diffstat (limited to 'example/fido-conformance.js')
-rw-r--r--example/fido-conformance.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/example/fido-conformance.js b/example/fido-conformance.js
index 706e420..b7cdc09 100644
--- a/example/fido-conformance.js
+++ b/example/fido-conformance.js
@@ -124,7 +124,11 @@ fidoConformanceRouter.post('/attestation/options', (req, res) => {
attestationType: attestation,
authenticatorSelection,
extensions,
- excludedCredentialIDs: devices.map(dev => dev.credentialID),
+ excludeCredentials: devices.map(dev => ({
+ id: dev.credentialID,
+ type: 'public-key',
+ transports: ['usb', 'ble', 'nfc', 'internal'],
+ })),
});
user.currentChallenge = opts.challenge;
@@ -199,7 +203,11 @@ fidoConformanceRouter.post('/assertion/options', (req, res) => {
const opts = generateAssertionOptions({
extensions,
userVerification,
- allowedCredentialIDs: devices.map(dev => dev.credentialID),
+ allowCredentials: devices.map(dev => ({
+ id: dev.credentialID,
+ type: 'public-key',
+ transports: ['usb', 'ble', 'nfc', 'internal'],
+ })),
});
user.currentChallenge = opts.challenge;