Auth.js
lastmod 2026-11-03created 2022-12-285 edits
NextAuth.js renamed, with its features extended to be more general-purpose and decoupled
Features
- Flexible
- Usable anywhere: Next.js, Sveltekit, Vercel Edge / Serverless, etc.
- Supports any DB: MySQL, Postgres, MongoDB,..
- Database sessions or JWT
- Supports services such as Google, Facebook, Auth0, Apple
- OAuth 2 + Open ID support
- Built-in email / Passwordless / magic link features
- Can be used with a Username / Pasword store
- Signed, prefixed, server-only cookies
- Built-in CSRF protection
- JWT with JWS / JWE / JWK
- Tab syncing, auto-revalidation, keepalives
- Does not rely on client-side JavaScript