Skip to main content
Auth.js logo

Auth.js

Authentication for the Web. Free and open source.

4.5

Open-source authentication library for Next.js, SvelteKit, and other frameworks. Formerly NextAuth.js. Self-hostable with full control over your auth flow.

Features

100% free and open source
Self-hostable - full data control
50+ OAuth providers supported
Email/passwordless authentication
Database adapters (Prisma, Drizzle, etc.)
JWT or database sessions
Edge Runtime compatible
TypeScript first

Pros

  • + Completely free - no per-user costs
  • + Full control over data and auth flow
  • + Huge provider ecosystem (50+ OAuth)
  • + Active open-source community
  • + No vendor lock-in

Cons

  • More setup than managed services
  • No built-in UI components
  • Self-managed infrastructure
  • No dedicated support (community only)