authjs-skills

Installation
Summary

Complete Auth.js v5 setup for Next.js with Google OAuth, credentials authentication, and session management.

  • Supports Google OAuth, credentials-based login, and multi-provider account linking with simplified v5 configuration and universal auth() function
  • Includes JWT and database session strategies, role-based access control, and middleware-based route protection
  • Provides password hashing with bcrypt, Prisma database integration, and TypeScript type safety through module augmentation
  • Covers environment setup, sign-in/sign-out flows, protected API routes, and migration guidance from v4 to v5
SKILL.md

Links

Installation

pnpm add next-auth@beta

Note: Auth.js v5 is currently in beta. Use next-auth@beta to install the latest v5 version.

What's New in Auth.js v5?

Related skills
Installs
500
GitHub Stars
20
First Seen
Jan 20, 2026