A high-performance and secure authentication microservice using FastAPI, MongoDB, Redis, and JWT. This service handles user registration, login, protected routes, and token-based authentication, with optional session/token management via Redis.
- 🧾 JWT-based token authentication (Access + Refresh tokens)
- 🗃️ MongoDB for user data storage (
motor
async driver) - 🔄 Redis for refresh/session token storage or blacklisting
- 🔑 Secure password hashing with Bcrypt
- ✅ Input validation with Pydantic
- 🌐 minimal frontend for login/register testing
- FastAPI – Modern Python web framework
- MongoDB – NoSQL database for storing users
- Redis – Session/token storage & blacklisting
- Pydantic – Data validation
- bcrypt – Password hashing
- python-jose – JWT handling


