Documentation
README
NextAuth.js Authentication
Systematic authentication implementation with NextAuth.js v5, OAuth providers, and session management.
Overview
This Skill enforces:
- NextAuth.js v5 configuration
- Google OAuth and credentials providers
- Session management with JWT
- Protected routes with middleware
- Role-based access control (RBAC)
- Secure password hashing
- Token refresh strategies
Apply when implementing authentication, protecting routes, or managing user sessions.
Setup NextAuth.js v5
Install Dependencies
npm install next-auth@beta bcryptjs
npm install -D @types/bcryptjs
Create Auth Configuration
This is the opening of the README. Read the full README on GitHub.