nextauth - NextAuth.js v5 OAuth Authentication
Configure NextAuth.js v5 authentication with OAuth providers and Prisma adapter
Tags
Updated: 2026-05-28Typical Outputs
What this skill does
- configure authentication
- set up OAuth providers
- create auth configuration
- create API route
- add session provider
- protect routes
- access session
- sign in users
- sign out users
Inputs
- OAuth client credentials
- Prisma database adapter
- AUTH_SECRET
- Next.js app structure
Outputs
- User sessions
- Authentication status
- Protected routes
- OAuth callbacks
Requirements
- Next.js app router
- Prisma ORM
- OAuth provider accounts
- Node.js runtime
