summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/methods/startAssertion.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-05-26 22:30:35 -0700
committerMatthew Miller <matthew@millerti.me>2020-05-26 22:30:35 -0700
commit358e67309928ab515903cf36220bf3fb563778c0 (patch)
tree2b2a676be0ce2ee0fc3b6c14c338c2275686a875 /packages/browser/src/methods/startAssertion.ts
parent8b5f547e66230cafd01649d37a9870edb57a1e09 (diff)
Update browser start methods to new types
Diffstat (limited to 'packages/browser/src/methods/startAssertion.ts')
-rw-r--r--packages/browser/src/methods/startAssertion.ts6
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,
),
};