This repository provides an example implementation of authentication using FastAPI. It includes a user authentication API endpoint with token-based authentication using JWT (JSON Web Tokens) and bcrypt password hashing.
- python 3.10
- Clone repository
git clone https://github.com/ydaigo/fastapi-auth.git
cd fastapi-auth
- Install dependencies
pip install -r requirements.txt
- Run application
uvicorn main:app --reload --port 5000