diff options
Diffstat (limited to 'packages/browser/src/methods/startAttestation.ts')
-rw-r--r-- | packages/browser/src/methods/startAttestation.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/browser/src/methods/startAttestation.ts b/packages/browser/src/methods/startAttestation.ts index c095670..14ffc53 100644 --- a/packages/browser/src/methods/startAttestation.ts +++ b/packages/browser/src/methods/startAttestation.ts @@ -7,6 +7,7 @@ import { import toUint8Array from '../helpers/toUint8Array'; import toBase64String from '../helpers/toBase64String'; import supportsWebauthn from '../helpers/supportsWebauthn'; +import toPublicKeyCredentialDescriptor from '../helpers/toPublicKeyCredentialDescriptor'; /** * Begin authenticator "registration" via WebAuthn attestation @@ -28,6 +29,9 @@ export default async function startAttestation( ...creationOptionsJSON.publicKey.user, id: toUint8Array(creationOptionsJSON.publicKey.user.id), }, + excludeCredentials: creationOptionsJSON.publicKey.excludeCredentials.map( + toPublicKeyCredentialDescriptor, + ), }; // Wait for the user to complete attestation |