Created
August 7, 2019 06:17
-
-
Save miguelmota/ad833d2e6f024a7189f8036641640658 to your computer and use it in GitHub Desktop.
JavaScript check if webauthn api (fido/u2f) is supported in browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const isSupported = () => { | |
return !(typeof navigator.credentials !== 'object' || typeof navigator.credentials.create !== 'function' || typeof navigator.credentials.get !== 'function') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment