The project is based on libre-fastapi-jwt that is no longer maintained.
Documentation: https://cblgn.github.io/fastapi-jwt2
Source Code: https://github.com/cblgn/fastapi-jwt2
FastAPI extension that provides JWT Auth support (secure, easy to use and lightweight), if you were familiar with flask-jwt-extended this extension suitable for you, cause this extension inspired by flask-jwt-extended ๐
- Access tokens and refresh tokens
- Freshness Tokens
- Revoking Tokens
- Support for WebSocket authorization
- Support for adding custom claims to JSON Web Tokens
- Storing tokens in cookies and CSRF protection
The easiest way to start working with this extension with pip
pip install fastapi-jwt2
If you want to use asymmetric (public/private) key signing algorithms, include the asymmetric extra requirements.
pip install 'fastapi-jwt2[asymmetric]'
This project is licensed under the terms of the MIT license.