Skip to content

A secure and scalable custom authentication system built using MERN Stack, with features like JWT authentication, multi-factor authentication (2FA), and email verification.

Notifications You must be signed in to change notification settings

anujverma08/Authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔐 Custom Authentication System | MERN Stack

A secure and scalable custom authentication system built using the MERN stack (MongoDB, Express.js, React.js, Node.js). This project includes advanced authentication features such as JWT, email verification, 2FA, and secure cookie-based session management.


🚀 Features

  • User Registration and Login
  • JWT-based Authentication
  • Multi-Factor Authentication (2FA)
  • Email Verification with OTP
  • Secure Cookies and Session Handling
  • Input Validation and Error Responses
  • RESTful API Architecture

🖥️ Tech Stack

  • Frontend: Next.js
  • Backend: Node.js, Express.js
  • Database: MongoDB (Mongoose ODM)
  • Security: JWT, Bcrypt, Email OTP, 2FA
  • Libraries: Cookie-parser, CORS

⚙️ Setup & Run Locally

Clone the repository

git clone https://github.com/anujverma08/Authentication.git cd Authentication

Install frontend dependencies

cd frontend npm install

Install backend dependencies

cd ../backend npm install

Set up environment

Start the project

Terminal 1 – Start Backend (Node.js + Express)

cd backend npm run dev

Terminal 2 – Start Frontend (Next.js)

cd frontend npm run dev

About

A secure and scalable custom authentication system built using MERN Stack, with features like JWT authentication, multi-factor authentication (2FA), and email verification.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages