What problem does it solve?
Eliminates insecure password-based signups and fragile social-login wiring by providing a production-ready, passwordless-first authentication architecture that reduces phishing and account takeover risk while enabling cross-device sign-in.
Core Features & Use Cases
- Passkeys / WebAuthn: Complete registration and authentication flows with server-side challenge verification and credential storage patterns.
- OAuth (Google, Apple): Provider configuration and redirect handling for web and native apps, including App Store compliance notes for Apple.
- Magic Links & Recovery: Short-lived magic links, email recovery hierarchy, and backup passkey guidance for account recovery.
- Supabase Integration: Database schema, RLS policies for credential rows, Supabase Auth configuration checklist, and session exchange patterns.
- MFA & Cross-Device Sync: TOTP and passkey-as-2FA patterns, guidance for platform vs cross-platform attachments, and QR/QR+hybrid flows for devices without local credentials.
- Use Case: Replace password signups in a Next.js + Supabase app with passkeys as primary method, Google/Apple sign-in as social fallback, and short-lived magic links for email recovery.
Quick Start
Add passkeys and OAuth to your Next.js app by implementing the provided server-side challenge endpoints, storing public keys in a passkey_credentials table, and configuring Google and Apple providers in the Supabase dashboard.