Authentication Documentation
Quick reference guides for FlowStack authentication setup using Better Auth and @daveyplate/better-auth-ui .
π Guides by Skill Level
Start here if you're new to FlowStack auth:
Guide
Time
Description
Auth Modes
β±οΈ 10 min
Switch between simple and organization auth
Protected Routes
β±οΈ 5 min
Protect pages requiring authentication
Configuration
β±οΈ 10 min
Centralized config reference
For developers building real features:
Deep customization for complex requirements:
File
Purpose
apps/*/src/config/urls.ts
Frontend/API URLs (APP_URLS)
apps/*/src/config/redirects.ts
Frontend redirect paths
packages/auth/src/config/redirects.ts
Backend redirect paths
File
Purpose
src/auth.ts
Main Better Auth configuration
src/email/*.ts
Email sending functions
src/types.ts
Environment variable types
Frontend (apps/web/ or apps/tanstack/)
File
Purpose
src/lib/auth-client.ts
Auth client configuration
src/providers.tsx
AuthUIProvider setup
src/pages/auth/*.tsx
Auth page components
New to FlowStack? Start with our Quick Start Guide .