A Next.js application demonstrating passkey step-up authentication with Authsignal.
- Passkey Enrollment: Register WebAuthn/FIDO2 authenticators
- Passkey Authentication: Secure login with biometrics or security keys
- Transaction Verification: Step-up authentication for high-value transactions
- Enrollment Status: Check if users have passkeys enrolled
-
Install dependencies:
pnpm install
-
Set up environment variables:
cp .env.example .env.local # Add your Authsignal API credentials
-
Run the development server:
pnpm dev
- Email:
demo@example.com
- Password:
password123
POST /api/passkey/check-enrollment
- Check if user has passkeysPOST /api/passkey/enroll
- Start passkey enrollmentPOST /api/passkey/validate
- Validate passkey challengePOST /api/passkey/verify-transaction
- Verify high-value transactions
All endpoints require authentication and use server-side user identification to prevent user impersonation attacks.