All setups
🔐

Auth Setup

Starter Kit

Authentication only — sign-in, sign-up, forgot password, and a protected home page ready to extend.

npx sui addauth-setup

Pages & routes

Sign In
Sign Up
Forgot Password
Protected Home

Generated files

app/(auth)/sign-in/page.tsx
~68 lines
app/(auth)/sign-up/page.tsx
~72 lines
app/(auth)/forgot-password/page.tsx
~58 lines
app/(protected)/layout.tsx
~22 lines
app/(protected)/home/page.tsx
~38 lines
app/(auth)/layout.tsx
~10 lines
+ auth files (based on your chosen provider)

Output options

Main project

Files written directly into your project root. Dependencies installed automatically. Ready to run.

struct/setups/auth

Saved as a reference template. No dependencies installed. Copy files manually when ready.

Auth providers

None

No auth — add it yourself later

NextAuth.js

Credentials provider, sessions, middleware

next-auth@beta

Better Auth

Database-agnostic, email/password, middleware

better-auth

Basic (JWT)

Custom JWT cookies, sign-in/up/out API routes

jose

Color palettes

slate
blue
indigo
violet
purple
rose
orange
emerald
teal
zinc

Quick start

npx sui add auth-setup
# Follow the prompts
npm run dev
Browse all setups