Metadata-Version: 2.1
Name: async_fastapi_jwt_auth
Version: 0.5.1
Summary: Async fork of FastAPI extension that provides JWT Auth support (secure, easy to use and lightweight)
Author-email: Yan Khachko & Nyoman Pradipta Dewantara <a@slnk.icu>
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: fastapi>=0.73.0
Requires-Dist: PyJWT>=2.3.0
Requires-Dist: cryptography>=2.6,<4.0.0 ; extra == "asymmetric"
Requires-Dist: cryptography>=2.6,<4.0.0 ; extra == "dev"
Requires-Dist: uvicorn>=0.17.3 ; extra == "dev"
Requires-Dist: mkdocs>=1.1.2,<2.0.0 ; extra == "doc"
Requires-Dist: mkdocs-material>=5.5.0,<6.0.0 ; extra == "doc"
Requires-Dist: markdown-include>=0.5.1,<0.6.0 ; extra == "doc"
Requires-Dist: pytest>=6.2.5 ; extra == "test"
Requires-Dist: pytest-cov>=3.0.0 ; extra == "test"
Requires-Dist: coveralls==3.3.1 ; extra == "test"
Requires-Dist: pytest-asyncio>=0.17.2 ; extra == "test"
Project-URL: Documentation, https://sijokun.github.io/async-fastapi-jwt-auth
Project-URL: Source, https://github.com/sijokun/async-fastapi-jwt-auth
Provides-Extra: asymmetric
Provides-Extra: dev
Provides-Extra: doc
Provides-Extra: test

<h1 align="left" style="margin-bottom: 20px; font-weight: 500; font-size: 50px; color: black;">
  Async fork of FastAPI JWT Auth
</h1>

![Tests](https://github.com/sijokun/async-fastapi-jwt-auth/workflows/Tests/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/sijokun/async-fastapi-jwt-auth/badge.svg?branch=master)](https://coveralls.io/github/sijokun/async-fastapi-jwt-auth?branch=master)
[![PyPI version](https://badge.fury.io/py/async-fastapi-jwt-auth.svg)](https://badge.fury.io/py/async-fastapi-jwt-auth)
[![Downloads](https://static.pepy.tech/personalized-badge/async-fastapi-jwt-auth?period=total&units=international_system&left_color=grey&right_color=brightgreen&left_text=Downloads)](https://pepy.tech/project/async-fastapi-jwt-auth)

---

Original lib:

**Documentation**: <a href="https://indominusbyte.github.io/fastapi-jwt-auth" target="_blank">https://indominusbyte.github.io/fastapi-jwt-auth</a>

**Source Code**: <a href="https://github.com/IndominusByte/fastapi-jwt-auth" target="_blank">https://github.com/IndominusByte/fastapi-jwt-auth</a>

Async fork:

**Documentation**: <a href="https://sijokun.github.io/async-fastapi-jwt-auth" target="_blank">https://sijokun.github.io/async-fastapi-jwt-auth</a>

**Source Code**: <a href="https://github.com/sijokun/async-fastapi-jwt-auth" target="_blank">https://github.com/sijokun/async-fastapi-jwt-auth/</a>

---

## Features
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

## Installation
The easiest way to start working with this extension with pip

```bash
pip install async-fastapi-jwt-auth
```

If you want to use asymmetric (public/private) key signing algorithms, include the <b>asymmetric</b> extra requirements.
```bash
pip install 'async-fastapi-jwt-auth[asymmetric]'
```

## License
This project is licensed under the terms of the MIT license.

