Skip to content

Commit

Permalink
✨ webauthn: trick turnkey's support detection
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Nov 23, 2023
1 parent baf05ec commit 914faa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webauthn/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ if (ExpoWebauthn) {
return parse(await webauthn.create(stringify(options.publicKey)));
},
} as CredentialsContainer;
// @ts-expect-error -- turnkey's webauthn support detection
global.window.PublicKeyCredential = {} as PublicKeyCredential;
}

function stringify(value: unknown) {
Expand Down

0 comments on commit 914faa6

Please sign in to comment.