
Authjs Skills
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
Own this skill? Claim it
What it does
- Covers Auth.js v5 installation via
next-auth@beta,auth.tsconfiguration, 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, andAUTH_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 -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Links
- Getting Started: https://authjs.dev/getting-started/installation?framework=Next.js
- Migrating to v5: https://authjs.dev/getting-started/migrating-to-v5
- Google Provider: https://authjs.dev/getting-started/providers/google
- Credentials Provider: https://authjs.dev/getting-started/providers/credentials
- Core API Reference: https://authjs.dev/reference/core
- Session Management: https://authjs.dev/getting-started/session-management
- Concepts: https://authjs.dev/concepts
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 3Similar to Authjs Skills
More Backend & APIs
nextauth-authenticationmindrally/skills1.2K installsSetup guide for NextAuth.js v5 in Next.js covering providers, JWT and database sessions, and route protection.
nextjs-authenticationgiuseppe-trisciuoglio/developer-kit4K installsComplete Auth.js 5 setup for Next.js App Router, covering OAuth, route protection, and role-based access.
auth-patternsdavepoon/buildwithclaude183 installsReference guide for authentication in Next.js covering NextAuth.js (Auth.js) setup, middleware-based route protection, and session handling.
nodeops-authnodeops-app/skills565 installsAdd NodeOps PKCE OAuth login to an existing Next.js App Router project with guarded, idempotent setup steps.
better-auth-best-practicesbetter-auth/skills133.9K installsComplete Better Auth setup covering server, client, database adapters, sessions, and security configuration.