Auth,
out of the box.

A full-stack authentication boilerplate — Google, GitHub, and passwordless Email OTP, wired end-to-end. Built for hackathons and projects where you'd rather ship features than wire up auth.

Built with

Next.js 15TypeScriptNextAuth.jsExpress 5PrismaSupabaseRedisNodemailerTailwind CSSPrettier

What's included

Google OAuth

One-click sign in via Google

GitHub OAuth

One-click sign in via GitHub

Email + OTP

Passwordless login via 6-digit OTP

Redis OTP TTL

OTPs expire in 10 minutes automatically

JWT Sessions

Stateless, secure NextAuth sessions

Prisma + Supabase

Type-safe PostgreSQL via Prisma ORM

Quick start

terminal
$git clone https://github.com/SHIVAM-KUMAR-59/authkit.git
$cd authkit/server && npm install && cp .env.example .env
$npx prisma migrate dev --name init && npm run dev
$cd ../client && npm install && cp .env.local.example .env.local
$npm run dev
Visit http://localhost:3000

Ready to try it?

See the full auth flow live — sign up or log in in seconds.

Get started