Auth.js v5 setup for Next.js covering Google OAuth, credentials login, environment config, and core API use.

CCM score
45 of 100
skills.sh installs
799
GitHub stars
23
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Auth.js v5 installation via next-auth@beta, auth.ts configuration, and the App Router API route handler
  • Includes Google OAuth provider setup, a bcrypt-backed credentials provider with Zod validation, and a user registration route
  • Requires AUTH_SECRET, AUTH_GOOGLE_ID, AUTH_GOOGLE_SECRET, and AUTH_URL, and warns against committing the secret
  • Designed for Next.js App Router projects that need Google sign-in or email and password authentication with middleware route protection

Install

$ npx -y skills add gocallum/nextjs16-agent-skills --skill authjs-skills -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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?

Key Changes from v4

  • Simplified Configuration: More streamlined setup with better TypeScript support
  • Universal auth() Export: Single function for authentication across all contexts
  • Enhanced Security: Improved CSRF protection and session handling
  • Edge Runtime Support: Full compatibility with Edge Runtime and middleware
  • Better Type Safety: Improved TypeScript definitions throughout

Environment Variables

Required Environment Variables

Details

Repository
github.com/gocallum/nextjs16-agent-skills
Categories
Backend & APIs, Frontend & UI Code
First seen
May 16, 2026

More from gocallum/nextjs16-agent-skills

All 3

Similar to Authjs Skills

More Backend & APIs