Authforge
Open source starter for Next.js

Authentication you can ship on day one.

Authforge gives every new project email and password, Google and GitHub, two-factor, passkeys and an admin panel. Clone it, set a few environment variables and start building your actual product.

Google GitHub Passkeys 2FA

Email and password

Verified sign-ups, password reset links, breached-password checks and strength hints.

Google and GitHub

One-click social sign-in with safe account linking when the email matches.

Two-factor

Authenticator-app codes, single-use backup codes, trusted devices and lockout after failed tries.

Passkeys

Face ID, Touch ID, Windows Hello and security keys, including browser autofill.

Roles and admin panel

Search users, change roles, ban, revoke sessions and impersonate to debug.

Production defaults

Rate limits, secure cookies, session revocation, security headers and typed env validation.

Start a new project with it

Three commands to a working auth system on your machine.

npx degit Shahryartariq/authforge my-app
cd my-app && pnpm install
pnpm env:setup && pnpm dev
Next.js 16TypeScriptBetter AuthDrizzle or PrismaPostgreSQLshadcn/uiResendTailwind CSS