fastapi-jwt
fastapi-jwt copied to clipboard
Secure a FastAPI app by enabling authentication using JSON Web Tokens (JWTs)
Securing FastAPI with JWT Token-based Authentication
Want to learn how to build this?
Check out the post.
Want to use this project?
-
Fork/Clone
-
Create and activate a virtual environment:
$ python3 -m venv venv && source venv/bin/activate -
Install the requirements:
(venv)$ pip install -r requirements.txt -
Run the app:
(venv)$ python main.py -
Test at http://localhost:8081/docs