Complete auth system
Production-ready authentication with email/password, 10+ OAuth providers, passkeys, TOTP-based 2FA, and session management. Includes pre-built React components, webhooks for user events, and full audit logging.
Install @sylphx/react and @sylphx/sdk
Wrap your app with SylphxProvider
Add SignIn/SignUp components
Use auth() on the server to get user
Server-side session management with secure cookies. Sessions automatically refresh.
Connect Google, GitHub, Apple, Discord, and more with a few lines of code.
Two-factor authentication using TOTP apps like Google Authenticator.
Use middleware to protect routes and verify authentication.
| Method | Description |
|---|---|
auth() | Get the current authenticated user (server) |
useUser() | React hook for current user |
<SignIn /> | Pre-built sign-in component |
<SignUp /> | Pre-built sign-up component |
Check out our complete documentation for in-depth guides and tutorials.
View full documentation