Purpose & Overview
Enables FIDO2/WebAuthn passkey registration and authentication using @simplewebauthn, eliminating phishing vectors and passwords.
Installation & Setup
1
Install the package
bash
bun veap add @veap/auth-passkey-plugin2
Register in lib/veap.ts (or auto via lib/plugins.gen.ts)
lib/veap.ts
typescript
// lib/veap.ts
import { Application } from "@veap/core/core/server";
import authPasskeyPlugin from "@veap/auth-passkey-plugin";
export const app = Application.configure()
.withAuth()
.withPlugins([authPasskeyPlugin])
.create();3
Run database migrations
bash
bun run veap migrateKeep in mind
- Supports FIDO2 / WebAuthn biometric authenticators: Apple Touch ID / Face ID, Windows Hello, and hardware YubiKeys.
- Stores public credentials associated with user accounts in the passkeys table.
- Provides phishing resistance through strict Relying Party ID (RP ID) domain verification.
Dependencies
Veap Core
@veap/core (^0.1.0)
Required Veap Plugins
NPM Packages
- @simplewebauthn/browser@^13.0.0
- @simplewebauthn/server@^13.0.0
- zod@^4.4.3
Authors & Maintainers
Veap Core Team
Maintainer
Specifications
- License
- MIT
- Type
- plugin
- Status
- official
- Repository
- GitHub →
- Issues
- Report issue →