Skip to content

shivanipandey5678/email-otp-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Complete MERN Authentication System

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


πŸš€ Features

  • βœ… 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

πŸ“Έ Screenshots

πŸ” Signup & Login

Signup Login


πŸ“₯ OTP Insertion Pages

OTP Insertion Reset OTP Form


πŸ”ƒ Reset Password

Reset Password


βœ… Alerts / Notifications

Alerts


🏠 Post-Login UI

Home Page After Login Dropdown


πŸ“ Folder Structure (Brief)

email-otp-auth/ β”œβ”€β”€ client/ # Frontend (React) β”‚ └── public/screenshots β”œβ”€β”€ server/ # Backend (Node, Express, MongoDB) └── README.md


πŸ› οΈ Tech Stack

  • Frontend: React.js, Tailwind CSS
  • Backend: Node.js, Express.js
  • Database: MongoDB + Mongoose
  • Auth: JWT + HTTPOnly Cookies
  • Email Service: Nodemailer (Gmail SMTP)

πŸ§‘β€πŸ’» Getting Started

πŸ”§ Setup Instructions:

1. Clone the Repo

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages