This is a working demo/skeleton of a Node.js/Express application with passworless login (WebAuthN/FIDO2).
Supports authentication with Windows Hello, Yubikey or Android lockscreen (i think), more to come.
Using express and fido2-lib
Work in progress, but works!
Note: This is a heavily modified and improved version of github.com/fido-alliance/webauthn-demo
cd keys
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365 -subj '/CN=localhost'
openssl genrsa -out key.pem
openssl req -new -key key.pem -out csr.pem
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
rm csr.pem
cd ..
node app
https://localhost:3000