nextauth
NextAuth.js (Auth.js) configuration including providers, adapters, session management, callbacks, and JWT handling.
npx skills add a5c-ai/babysitter --skill nextauth --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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/[...
- Capabilities
- Usage
- Inputs
- Configuration Example
- Implementation Patterns
- Basic Configuration (App Router)
- Type Extensions
- Auth Middleware
- Server-Side Auth Check
- Client-Side Auth Hook
- Session Provider
- Prisma Schema
- Best Practices
- Target Processes
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.
