Authentication
Auth that doesn't
slow you down.
User management, social logins, magic links, and row-level security — all wired into your Postgres database. Add auth in minutes, not weeks.
auth.ts
import { createClient } from '@wowsql/js'
const wowsql = createClient(WOWSQL_URL, WOWSQL_KEY)
// Sign up with email
const { user, error } = await wowsql.auth.signUp({
email: 'user@example.com',
password: 'secure-password'
})
// Sign in with Google
await wowsql.auth.signInWithOAuth({
provider: 'google',
options: { redirectTo: '/dashboard' }
})
// Get current user — works everywhere
const { data: { user } } = await wowsql.auth.getUser()User Management
Dashboard to manage users, roles, sessions, and permissions. Everything in one place.
Social Logins
Google, GitHub, Twitter, Apple, Discord — zero-config OAuth providers ready to go.
Row Level Security
Auth integrates with your Postgres RLS policies. Secure data at the row level.
Magic Links
Passwordless authentication via email. Beautiful default templates, fully customizable.
JWT Tokens
Industry-standard JWT with automatic refresh. Custom claims from your database.
Multi-Factor Auth
TOTP-based MFA for enhanced security. Enable per user or enforce globally.
Works with every framework
Drop-in auth for React, Next.js, Vue, Svelte, Flutter, and more.
Email / Password
Magic Link
OAuth Providers
Phone / SMS
