Check your browser for U2F features

Is there a way to check if the browser supports U2F or not?

I know that Chrome is currently the only browser officially supporting U2F, but there are add-ons for Firefox, and there may also be customized browsers that can receive U2F.

I don’t want to give up browsers like Google, because add-on users will not be able to use it.

I saw that GitHub seems to have a way to see this (because it distinguishes between Firefox with and without an addon), but I have no idea how to do this.

+8
source share
1 answer

Use the caniuse-support library, which uses information from the caniuse.com service ( https://caniuse.com/#feat=u2f ) and uses the bowser library (browser detector):

const { getSupport, currentBrowser, } = CaniuseSupport; const test1 = getSupport("u2f"); // current browser console.log( "Get feature support of U2F current browser (" + currentBrowser.id + " " + currentBrowser.version + "):", test1.level ); 

Sandbox CodePen

0
source

All Articles