/fastAPI-jwt-basic

minimal JWT authentication within FastAPI

Primary LanguagePythonThe UnlicenseUnlicense

Basic FastAPI + JWT implementation with zero additions

The following should get one going:

  1. Create a virtual environment using your preferred means, python 3.9
  2. Run pip install -r requirements.txt
  3. Create a .env file containing your version of:
secret=change-me-or-youll-be-sorry
algorithm=HS256
  1. Run python main.py
  2. Visit http://localhost:8081/docs for the OpenAPI GUI