https://github.com/ahmed-maher77/full-stack-authentication-system__mern-stack
A secure and scalable authentication system built with React (Frontend), Node.js, Express.js (Backend), and MongoDB (Database). It features JWT-based authentication, bcrypt password hashing, protected routes, and session management using access and refresh tokens.
https://github.com/ahmed-maher77/full-stack-authentication-system__mern-stack
authentication authentication-backend backend bcrypt cookie-parser cors dotenv expressjs jwt mongodb mongoose nodejs rest-api restful-api
Last synced: 13 days ago
JSON representation
A secure and scalable authentication system built with React (Frontend), Node.js, Express.js (Backend), and MongoDB (Database). It features JWT-based authentication, bcrypt password hashing, protected routes, and session management using access and refresh tokens.
- Host: GitHub
- URL: https://github.com/ahmed-maher77/full-stack-authentication-system__mern-stack
- Owner: Ahmed-Maher77
- Created: 2025-02-13T21:27:52.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-02-22T11:21:49.000Z (11 months ago)
- Last Synced: 2025-02-22T12:20:22.733Z (11 months ago)
- Topics: authentication, authentication-backend, backend, bcrypt, cookie-parser, cors, dotenv, expressjs, jwt, mongodb, mongoose, nodejs, rest-api, restful-api
- Language: JavaScript
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Full-Stack Authentication System
A **secure and scalable** authentication system built with **React (Frontend), Node.js, Express.js (Backend), and MongoDB (Database)**. It features **JWT-based authentication, bcrypt password hashing, protected routes, and session management** using **access and refresh tokens**.
## 🔑 **Key Features**
- ✅ **User Authentication** – Secure **registration & login** with real-time validation.
- ✅ **JWT-Based Authentication** – Issues **Access & Refresh Tokens** for session management.
- ✅ **Secure Password Storage** – Uses **bcrypt** for hashing and secure storage.
- ✅ **Protected Routes** – Middleware (**verifyJWT**) restricts access to authenticated users.
- ✅ **Token Expiry & Refresh** – Manages **session persistence** with **HTTP-only cookies**.
- ✅ **Role-Based Access Control (RBAC)** – Grant different permissions to users.
- ✅ **Frontend Integration** – React-based UI with **Axios** for API communication.
- ✅ **Scalable API** – Well-structured backend with **RESTful API design**.
This **full-stack** setup ensures a **secure, scalable, and efficient** authentication system for modern web applications. 🚀