An open API service indexing awesome lists of open source software.

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.

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