A simple implementation of json web token
based user authentication in flask which includes the following features:
- Access token
- Refresh Token
- Revoking/ Blacklisting refresh tokens
- Refresh token recycling
$ python -m venv venv
$ .\venv\scripts\activate
$ pip install --upgrade pip setuptools wheel
$ pip install -e .[dev]
$ pre-commit install
$ pre-commit install -t commit-msg
Add environment varaibles to .env file
$ flask db upgrade
$ flask run
app/
├── run.py
├── setup.py
├── tests
└── src/FlaskJWT
├── config.py
├── models
├── util
└── api
└── auth
docker build -t flaskjwt:latest .
docker run -it -p 5000:5000 flaskjwt:latest
The API is documented using Swagger UI. Run server and navigate to /api/v1/ui
This project is licensed under the MIT License - see the LICENSE.md file for details