Next.js Authentication Starter
A full-stack authentication starter project built with Next.js, Auth.js, and Supabase
Out-of-the-box user account management system with email login, Google OAuth, automatic account linking, and login history tracking
✨ Core Features
📧
Email Login
Secure passwordless login with Magic Link or OTP verification codes
🔑
Google OAuth
Integrated OAuth 2.0 for one-click quick login
🔗
Account Linking
Automatically link multiple login methods for the same user via email
📊
Login History
Complete record of login time, IP address, and device information
🛠 Tech Stack
Next.js 14+Auth.js v5SupabasePrismaTailwind CSSTypeScript
🚀 Quick Start
1
Clone the repository
git clone https://github.com/wyp0596/NextJsStarter.git && cd NextJsStarter && npm install2
Configure environment variables
cp .env.example .env.localFill in Supabase database URL and Google OAuth credentials
3
Initialize database
npx prisma generate && npx prisma db push4
Start development server
npm run devVisit http://localhost:3000