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.
import { SignIn, SignedIn, SignedOut } from '@sylphx/react'
export default function Page() {
return (
<>
<SignedOut>
<SignIn />
</SignedOut>
<SignedIn>
<p>Welcome back!</p>
</SignedIn>
</>
)
}import { auth } from '@sylphx/sdk/server'
export async function GET() {
const user = await auth()
if (!user) {
return new Response('Unauthorized', { status: 401 })
}
return Response.json({ userId: user.id })
}Looking for more examples?
View on GitHub