Skip to content

Cybernerd1/MernAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🔐 MernAuth — Full-Stack Authentication System with OTP Verification

MernAuth is a full-stack authentication system built using the MERN stack (MongoDB, Express, React, Node.js).
This was my first complete full-stack project, focused on implementing secure user authentication with features like OTP verification, hashed passwords, and JWT-based login sessions.


🚀 Overview

MernAuth provides a production-grade authentication flow where users can:

  • Register with an email and receive a One-Time Password (OTP) for verification.
  • Log in securely after account verification.
  • Enjoy protected routes powered by JWT authentication.
  • Experience a smooth and modern UI built with React + Tailwind CSS.

✨ Features

User Registration & Login — Sign up and log in with email & password
📩 OTP Verification — Email-based OTP system for validating user identity
🔐 Password Security — Uses bcryptjs for hashing and jsonwebtoken for secure sessions
⚙️ Protected Routes — Middleware-authenticated access using JWT
🎨 Modern Frontend — Responsive UI with Tailwind CSS
🧱 RESTful API — Clean, modular Express API design
🗄️ MongoDB Integration — Stores users and OTPs securely


💻 Tech Stack

Layer Technology
Frontend React (Vite), Tailwind CSS
Backend Node.js, Express.js
Database MongoDB (Mongoose)
Auth JWT, bcryptjs
OTP Service Nodemailer / EmailJS (for sending OTPs)

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors