auth-patterns

This skill should be used when the user asks about "authentication in Next.js", "NextAuth", "Auth.js", "middleware auth", "protected routes", "session management", "JWT", "login flow", or needs guidance on implementing authentication and authorization in Next.js applications.

Content Preview
---
name: auth-patterns
description: This skill should be used when the user asks about "authentication in Next.js", "NextAuth", "Auth.js", "middleware auth", "protected routes", "session management", "JWT", "login flow", or needs guidance on implementing authentication and authorization in Next.js applications.
version: 1.0.0
---

# Authentication Patterns in Next.js

## Overview

Next.js supports multiple authentication strategies. This skill covers common patterns including NextAuth.js (Auth.
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/auth-patterns.md \
  https://raw.githubusercontent.com/davepoon/buildwithclaude/main/plugins/nextjs-expert/skills/auth-patterns/SKILL.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/davepoon/buildwithclaude

Then reference at plugins/nextjs-expert/skills/auth-patterns/SKILL.md

Related Skills