https://github.com/ram-india/jwt
The user authentication and authorization is a Node.js application built with Express.js and MongoDB (via Mongoose) that provides a secure way to manage authentication and authorization. The API supports JWT authentication.
https://github.com/ram-india/jwt
jwt jwt-authentication jwt-token middleware node
Last synced: about 2 months ago
JSON representation
The user authentication and authorization is a Node.js application built with Express.js and MongoDB (via Mongoose) that provides a secure way to manage authentication and authorization. The API supports JWT authentication.
- Host: GitHub
- URL: https://github.com/ram-india/jwt
- Owner: Ram-india
- Created: 2025-02-20T10:06:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-20T12:37:36.000Z (over 1 year ago)
- Last Synced: 2025-02-20T13:30:37.159Z (over 1 year ago)
- Topics: jwt, jwt-authentication, jwt-token, middleware, node
- Language: JavaScript
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# πUser Authentication and Authorization with Bearer Token
## π Project Overview
The **user authentication and authorization** is a **Node.js** application built with **Express.js** and **MongoDB** (via Mongoose) that provides a secure way to manage authentication and authorization. The API supports **JWT authentication**.
## π Features
β
**User Registration & Login**
β
**JWT Authentication (Bearer Token)**
β
**Protected Routes with Authorization**
β
**Error Handling & Input Validation**
---
## π οΈ Technologies Used
- **Node.js** - Backend runtime environment
- **Express.js** - Web framework for handling API requests
- **MongoDB & Mongoose** - NoSQL database and ODM for schema modeling
- **JSON Web Tokens (JWT)** - Secure user authentication
- **bcrypt.js** - Password hashing for security
- **dotenv** - Environment variable management
---
## π Project Structure
π¦ user-management-api
β£ π config/ # Database configuration
β£ π controllers/ # Business logic for users
β£ π middlewares/ # Authentication and validation
β£ π models/ # Mongoose schema definitions
β£ π routes/ # API route definitions
β£ π .env # Environment variables
β£ π server.js # Main server entry point
β π README.md # Project documentation
---
## β‘ Installation & Setup
### 1οΈβ£ Clone the Repository
```sh
git clone https://github.com/Ram-india/jwt.git
cd jwt