Authentication

500 MAU free

Complete auth system

Self-Hosted

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.

Overview
Pricing
Usage
Docs
Examples
React Componentpage.tsx
typescript
import { SignIn, SignedIn, SignedOut } from '@sylphx/react'

export default function Page() {
  return (
    <>
      <SignedOut>
        <SignIn />
      </SignedOut>
      <SignedIn>
        <p>Welcome back!</p>
      </SignedIn>
    </>
  )
}
Get Current Userapi.ts
typescript
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