This project demonstrates how to integrate Auth.js (formerly NextAuth) with Next.js 14 App Router, including:
-
Credentials and Google provider authentication
-
Protected routes with middleware
-
Session management
-
Secure environment setup
-
✅ Next.js 14 App Router
-
✅ Auth.js integration
-
✅ Google OAuth and credentials provider
-
✅ Secure API route protection
-
✅ Session persistence using JWT
-
✅ Environment-based configuration
-
Next.js 14
-
Auth.js (NextAuth)
-
React
-
Tailwind CSS
-
TypeScript
✍️ This accompanying blog post will guide you on how to start up and use the application: How to integrate NextAuth with your Next.js application