Capacitor Biometric Authentication — other project

Capacitor Biometric Authentication is a framework-agnostic, provider-less biometric authentication library published on npm (v2.3.1, MIT). It gives web, iOS, Android, and Electron apps one reusable TypeScript API for WebAuthn and native biometric sign-in — usable from React, Vue, Angular, or vanilla JS, and installable as a Capacitor plugin with @capacitor/core kept as an optional peer dependency so pure-web apps carry zero Capacitor footprint. It combines native mobile biometrics (Android BiometricPrompt + Keystore, iOS LocalAuthentication + Keychain/Secure Enclave) with browser-side WebAuthn behind a small, tree-shakeable, Zustand-style state API. What stands out is the honesty of the security model: the client returns a standard, server-verifiable WebAuthn response, and a companion package, webauthn-server-buildkit (311 tests, full per-format attestation and FIDO Metadata Service support), closes the loop on the relying-party server. It ships an AI integration guide and a docs site with a live WebAuthn playground — plus a public list of what is not yet device-verified.

Tech stack

  • TypeScript 6
  • CapacitorJS 8
  • Swift
  • Kotlin
  • WebAuthn
  • Rollup
  • Vitest

Key features

  • WebAuthn + native biometric sign-in
  • One API for React, Vue, Angular & vanilla JS
  • Optional Capacitor plugin (iOS/Android), web works without it
  • Android BiometricPrompt + iOS LocalAuthentication/Secure Enclave
  • Provider-less Zustand-style state layer
  • Paired webauthn-server-buildkit server package
  • Multi-format dist (ESM/CJS/UMD/MJS), tree-shakeable

Category: other · Status: completed · Started: 2024-06 · Through: Present · Client: Open Source

Links: https://biometric-auth.dev · https://github.com/aoneahsan

Tags: npm · package · biometric · authentication · webauthn · passkeys · capacitor · framework-agnostic


Contact

Website: https://zaions.com
Email: aoneahsan@gmail.com
GitHub: github.com/aoneahsan
LinkedIn: linkedin.com/in/aoneahsan
RSS Feed: https://zaions.com/feed.xml
Sitemap: https://zaions.com/sitemap.xml
LLM Index: https://zaions.com/llms.txt