Skip to content

Secure a FastAPI app by enabling authentication using JSON Web Tokens (JWTs)

License

Notifications You must be signed in to change notification settings

testdrivenio/fastapi-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Securing FastAPI with JWT Token-based Authentication

Want to learn how to build this?

Check out the post.

Want to use this project?

  1. Fork/Clone

  2. Create and activate a virtual environment:

    $ python3 -m venv venv && source venv/bin/activate
  3. Install the requirements:

    (venv)$ pip install -r requirements.txt
  4. Run the app:

    (venv)$ python main.py
  5. Test at http://localhost:8081/docs