backend-auth-js
OfficialAuth.js for Next.js: fast, secure sign-in.
Authorpetbrains
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Next.js apps often require robust authentication. Auth.js (NextAuth.js v5) provides a complete authentication solution for Next.js apps, including OAuth providers, credentials login, session management, and native integration with App Router. It also offers adapters for Prisma, Drizzle, and other databases to simplify user management and session persistence.
Core Features & Use Cases
- OAuth providers: GitHub, Google, and others with minimal config.
- Credentials login: Username/password or custom credentials with secure verification.
- Session management: JWT or database-backed sessions out of the box.
- Adapters & App Router: Prisma/Drizzle adapters and seamless Next.js App Router integration.
- Use Case: Build a production-ready login system for a Next.js 14+ app with minimal boilerplate and scalable user management.
Quick Start
- Install dependencies: npm install next-auth@beta @auth/prisma-adapter
- Basic configuration overview:
- Create a NextAuth instance at app/api/auth/[...nextauth]/route.ts
- Configure providers (GitHub, Google) and Prisma adapter
- Environment variables to set:
- AUTH_SECRET=your-secret-key
- AUTH_GITHUB_ID=your-client-id
- AUTH_GITHUB_SECRET=your-client-secret
- AUTH_GOOGLE_ID=your-client-id
- AUTH_GOOGLE_SECRET=your-client-secret
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: backend-auth-js Download link: https://github.com/petbrains/mvp-builder/archive/main.zip#backend-auth-js Please download this .zip file, extract it, and install it in the .claude/skills/ directory.