passkey-server-0.1.1 has been yanked.
Passkey
A storage-agnostic Rust implementation of the WebAuthn (Passkey) protocol.
Features
- Generic Storage: Implement the
PasskeyStoretrait to use any database. - WASM Compatible: Optimized for WASM environments like Cloudflare Workers (use
wasmfeature). - Native Support: Fully compatible with multi-threaded runtimes like Tokio (enabled by default).
- Easy Integration: Provides high-level handlers for registration and authentication.
- Full Example: See
examples/basic.rsfor a complete Axum-based HTTP server implementation.
Installation
Add this to your Cargo.toml:
[]
# For native applications (Tokio, etc.)
= "0.1.0"
# For Cloudflare Workers / WASM (non-Send)
= { = "0.1.0", = false, = ["wasm"] }
Quick Start
1. Implement PasskeyStore
use async_trait;
use ;
use ;
;
2. Registration Flow
use ;
async
Credits
Part of the Housou project.