Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterdee/webauthn-demo
WebAuthn demo with biometric authentication (Face ID / fingerprint)
https://github.com/peterdee/webauthn-demo
biometrics javascript react typescript vite webauthn
Last synced: 2 days ago
JSON representation
WebAuthn demo with biometric authentication (Face ID / fingerprint)
- Host: GitHub
- URL: https://github.com/peterdee/webauthn-demo
- Owner: peterdee
- License: mit
- Created: 2024-05-09T19:06:50.000Z (9 months ago)
- Default Branch: release
- Last Pushed: 2024-05-28T15:01:59.000Z (8 months ago)
- Last Synced: 2024-05-29T06:35:34.944Z (8 months ago)
- Topics: biometrics, javascript, react, typescript, vite, webauthn
- Language: TypeScript
- Homepage: https://localhost:5173
- Size: 110 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## webauthn-demo
WebAuthn demo with biometric authentication (Face ID / fingerprint)
WebAuthn documentation:
https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/create
https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/get
Assertion check is not featured in this project, current example can be used as a replacement for TOTP or other 2FA / MFA solutions
### Deploy
```shell script
git clone https://github.com/peterdee/webauthn-demo
cd ./webauthn-demo
nvm use 22
npm ci
```### Launch
For local testing just launch the application:
```shell script
npm run dev
```WebAuthn requires HTTPS, so the app will be available at https://localhost:5173
Testing on another device is possible with [Ngrok](https://ngrok.com):
```shell script
ngrok http https://localhost:5173
```**WebAuthn forbids using IP addresses as domains, so it won't work if you access the app from your local network via IP address!**
### License
[MIT](./LICENSE.md)