MasterKale / SimpleWebAuthn

WebAuthn, Simplified. A collection of TypeScript-first libraries for simpler WebAuthn integration. Supports modern browsers, Node, Deno, and more.
https://simplewebauthn.dev
MIT License
1.62k stars 137 forks source link

fix/browser-isuvpaa-detect-webauthn-support #156

Closed MasterKale closed 3 years ago

MasterKale commented 3 years ago

platformAuthenticatorIsAvailable() errors out with "PublicKeyCredential is not defined" if the browser doesn't support WebAuthn. This PR adds in a check that WebAuthn is supported before trying to query for the status of the platform authenticator.

Fixes #154.