Authenticate Users with FastAPI and Token Authentication
This is a simple project to demonstrate how to use FastAPI with OAuth2 and JWT.
Create a virtual environment
python -m venv venv
Activate the virtual environment
source venv/bin/activate
pip install fastapi
pip install uvicorn[standard]
pip install python-multipart
pip install python-jose[cryptography]
pip install passlib[bcrypt]
openssl rand -hex 32
uvicorn main:app --reload
http://localhost:8000/docs