Simple WebAuthn demo
Implementation of WebAuthn API written in React and Express.
Demo that shows the future of passwordless authentication.
Users register with a username and one of the supported authenticators.
Login process requires matching username and authenticator pair.
- MongoDB (local or remote cluster)
- Clone this repo
git clone https://github.com/tonijukica/webauthn.git
npm installin cloned repo.
- Configure environment variables in
.env.exampleas guide. MongoDB connection is required for the app to run.
If the app is run locally then it’s not necessary to provide RP Id(Relaying Party ID) as it defaults to localhost, else you must provide RP Id to match your origin e.g.
npm run dev:client
npm run dev:server
- First run
npm run build
- Then run
npm startto start the server.
Supported Attestation formats
- Android SafetyNet
- Android Key store (Needs testing)
Implemented following Ackermann Yuriy examples.