A full-featured MERN stack authentication system with:
- Email OTP verification
- Password reset via OTP
- Secure JWT authentication
- Cookie-based login session
- Responsive UI
Live Demo (if deployed): Coming Soon
- β Email & Password Signup/Login
- π JWT-based Auth with HTTPOnly Cookies
- βοΈ Email Verification via OTP (Nodemailer)
- π Password Reset via OTP
- π‘οΈ Protected Routes using Middleware
- βοΈ Responsive & Clean UI using React + TailwindCSS
email-otp-auth/ βββ client/ # Frontend (React) β βββ public/screenshots βββ server/ # Backend (Node, Express, MongoDB) βββ README.md
- Frontend: React.js, Tailwind CSS
- Backend: Node.js, Express.js
- Database: MongoDB + Mongoose
- Auth: JWT + HTTPOnly Cookies
- Email Service: Nodemailer (Gmail SMTP)
git clone https://github.com/shivanipandey5678/email-otp-auth.git cd email-otp-auth
####2. 2. Backend Setup
cd server npm install npm run dev
Create a .env file and configure: PORT=8080 MONGO_URI=your_mongodb_uri JWT_ACCESS_TOKEN=your_jwt_secret SENDER_EMAIL=youremail@gmail.com SENDER_PASS=your_app_password
####3. Frontend Setup
cd client npm install npm run dev
Frontend will run on http://localhost:5173
π Author Made with β€οΈ by Shivani Pandey
βοΈ Support If you like this project, consider giving it a βοΈ on GitHub β it helps!