fastapi-jwt icon indicating copy to clipboard operation
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?

  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