Re: [webauthn] add feature detection blurb... (#1208)

In `webauthn-json`, we're using this:

    export function supported(): boolean {
      return !!(navigator.credentials && navigator.credentials.create && navigator.credentials.get && window.PublicKeyCredential);
    }
https://github.com/github/webauthn-json/blob/61dfd2b004316f5ebc096dfd2ac0576318bfdee7/src/webauthn.ts#L28-L30

Is that still the "recommended" way to detect support for security key operations?

-- 
GitHub Notification of comment by lgarron
Please view or discuss this issue at https://github.com/w3c/webauthn/issues/1208#issuecomment-523273035 using your GitHub account

Received on Wednesday, 21 August 2019 02:49:03 UTC