W3C home > Mailing lists > Public > public-webauthn@w3.org > August 2019

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

From: Lucas Garron via GitHub <sysbot+gh@w3.org>
Date: Wed, 21 Aug 2019 02:49:01 +0000
To: public-webauthn@w3.org
Message-ID: <issue_comment.created-523273035-1566355740-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:59:06 UTC