I am currently using the window.u2f
APIs to implement U2F two-factor authentication with my website. These are natively available in Firefox (when the about:config flag is enabled) and through Chromium with the u2f-api.js library.
My implementation uses window.u2f.register(...)
during key setup and window.u2f.sign(...)
during logins.
I have read that the new Web Authentication API is backwards compatible and supports FIDO U2F as well, however, I cannot find any information on how to implement it. All the samples only seem to demonstrate FIDO2 passwordless login, which is not what I want to do.
How do I implement FIDO U2F with the equivalent window.u2f.register
and window.u2f.sign
functions using the Web Authentication APIs?