{"repo":"hamidukarimi/authforge-express","free":true,"listed":false,"github":"https://github.com/hamidukarimi/authforge-express","clone":"git clone https://github.com/hamidukarimi/authforge-express.git","description":"Production-ready authentication & session management backend built with Express.js, MongoDB, JWT, and clean architecture.","language":"TypeScript","stars":15,"topics":["nodejs","authentication","authentication-backend","authorization","backend","bolerplate","express","javascript","jwt","jwt-authentication"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"AuthForge Express An open-source authentication backend built with Node.js , Express.js , MongoDB , and TypeScript . It includes JWT-based authentication, refresh tokens with database sessions, role-based access control, rate limiting, and password management. Designed for real-world projects and easily extendable. --- 🔹 Features - ✅ User registration & login with hashed passwords - ✅ JWT authentication (access + refresh tokens) - ✅ Database-backed refresh tokens (sessions stored in MongoDB) - ✅ Role-based authorization ( user & admin ) - ✅ Password change & session invalidation - ✅ Logout & logout-all devices - ✅ Rate limiting per IP (prevents brute force login) - ✅ Error handling with standardized ApiError - ✅ Environment configuration with Zod validation - ✅ Fully typed with TypeScript (strict mode) - ✅ RESTful API design --- 🔹 Tech Stack - Node.js (v18+) - Express.js - MongoDB (local or Atlas) - Mongoose - TypeScript (strict mode) - Zod for environment & request validation - JWT for authentication - Bcrypt for password hashing - dotenv for environment variables - ts-node / nodemon for development --- 🔹 Project Structure --- 🔹 Installation 1️⃣ Clone the repository 2️⃣ Install dependencies 3️⃣ Create .env file You must create a .env file in the root of the project. You can copy from .env.example : Or manually create one with: All environment variables are validated at startup using Zod . The server will not start if any required variable is missing or invalid. --- 🔹 Ru","default_branch":null,"files":null,"tree":[],"storefront":"/r/hamidukarimi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hamidukarimi/authforge-express/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}