Agent skill · Security

nextauth

NextAuth.js (Auth.js) configuration including providers, adapters, session management, callbacks, and JWT handling.

a5c-aigithub.com/a5c-aiGitHub ↗
claude-codecodexcan modify filesMIT
Install
npx skills add a5c-ai/babysitter --skill nextauth --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Allowed tools: ReadWriteEditBashGlobGrep
Path: library/specializations/web-development/skills/nextauth/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,642
Language: JavaScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# NextAuth Skill Expert assistance for implementing authentication in Next.js applications with NextAuth.js (Auth.js). ## Capabilities - Configure OAuth providers (Google, GitHub, etc.) - Set up credentials-based authentication - Implement database adapters (Prisma, Drizzle) - Handle JWT and session callbacks - Configure protected routes and middleware - Implement role-based access control ## Usage Invoke this skill when you need to: - Add authentication to Next.js app - Configure OAuth providers - Set up database sessions - Implement auth middleware - Handle user roles and permissions ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | providers | array | Yes | Auth providers to configure | | adapter | string | No | Database adapter (prisma, drizzle) | | sessionStrategy | string | No | jwt or database | | callbacks | array | No | Custom callbacks needed | ### Configuration Example ```json { "providers": ["google", "github", "credentials"], "adapter": "prisma", "sessionStrategy": "jwt", "callbacks": ["jwt", "session", "signIn"] } ``` ## Implementation Patterns ### Basic Configuration (App Router) ```typescript // app/api/auth/[...

What's inside
Steps it walks through
  1. Capabilities
  2. Usage
  3. Inputs
  4. Configuration Example
  5. Implementation Patterns
  6. Basic Configuration (App Router)
  7. Type Extensions
  8. Auth Middleware
  9. Server-Side Auth Check
  10. Client-Side Auth Hook
  11. Session Provider
  12. Prisma Schema
  13. Best Practices
  14. Target Processes
Ships with 1 file
  • README.md
More from babysitter
All skills →
About this skill
What does the nextauth skill do?

NextAuth.js (Auth.js) configuration including providers, adapters, session management, callbacks, and JWT handling.

How do I install it?

Run `npx skills add a5c-ai/babysitter --skill nextauth --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going