diff options
Diffstat (limited to 'packages/browser/src/methods/startAssertion.ts')
-rw-r--r-- | packages/browser/src/methods/startAssertion.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/browser/src/methods/startAssertion.ts b/packages/browser/src/methods/startAssertion.ts index 0648e56..093cf30 100644 --- a/packages/browser/src/methods/startAssertion.ts +++ b/packages/browser/src/methods/startAssertion.ts @@ -23,9 +23,9 @@ export default async function startAssertion( // We need to convert some values to Uint8Arrays before passing the credentials to the navigator const publicKey: PublicKeyCredentialRequestOptions = { - ...requestOptionsJSON.publicKey, - challenge: toUint8Array(requestOptionsJSON.publicKey.challenge), - allowCredentials: requestOptionsJSON.publicKey.allowCredentials.map( + ...requestOptionsJSON, + challenge: toUint8Array(requestOptionsJSON.challenge), + allowCredentials: requestOptionsJSON.allowCredentials.map( toPublicKeyCredentialDescriptor, ), }; |