nextauth

Installation
SKILL.md

NextAuth.js (Auth.js)

NextAuth (evolving into Auth.js) is a complete open-source authentication solution. It is designed to work with any OAuth service, supports email/passwordless, and owns your data (Database Adapters).

When to Use

  • Next.js Full-Stack Authentication: The standard, official authentication solution (Auth.js) for Next.js App Router and Pages Router.
  • Universal Provider Integrations: Supporting GitHub, Google, Apple, and corporate OIDC/SAML providers in minutes.
  • Database Session Storage with Adapters: Syncing user profiles and accounts to PostgreSQL, MySQL, or MongoDB via Prisma, Drizzle, or TypeORM.
  • Lightweight JWT Cookie Sessions: Running serverless, zero-database session verification entirely through encrypted cookies.

Quick Start

// auth.ts
import NextAuth from "next-auth";
import GitHub from "next-auth/providers/github";
Installs
8
GitHub Stars
15
First Seen
Feb 10, 2026