Metadata-Version: 2.1
Name: flask-jwt-auth
Version: 0.0.10
Summary: This module contains a simple class to implement authentication and authorization in a Flask app using JSON Web Token (JWT)
Home-page: https://github.com/Quakingaspen-codehub/flask_jwt_auth
Author: Quaking Aspen
Author-email: info@quakingaspen.net
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

<h6 align="left">
    <img src="https://cdn.sealr.app/quaking+aspen+logo+teal+full-02.png"  />
</h6>

# flask_jwt_auth
[Introduction](#Introduction)\
[Getting Started](#Started)\
[Example](#Example)\
[Contributors](#Contributors)\
[License](#License)
<h2 id="Introduction">Introduction</h2>
This module contains a simple class to implement authentication and authorization in a Flask app using JSON Web Token (JWT)
 
<h2 id="Started">Getting Started</h2>
In order to install, open the command prompt and type ✌️:

```
pip install flask_jwt_auth
```

In order to import:
```
from flask_jwt_auth import AuthFilters
```

<h3 id="Token">Token Validation using an SQL Database</h3>
This library supports using an SQL database for token validation. 
The basic idea is that you store all your tokens in DB, 
and flag the invalidated tokens (e.g. when a user logs out).  
To use this feature:
- Set the environment variable containing the DB connection string, called `JWT_SESSION_TOKEN_DB_URI`.
- Create a table in that DB, called `session_token`. It must have the following fields:
  - `access_token` : string
  - `refresh_token` : string
  - `is_invalid` : boolean

<h2 id="">Contributors</h2>

This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
<a href="https://github.com/Quakingaspen-codehub/flask_jwt_auth/graphs/contributors">
""
</a>

<h2 id="License">License</h2>

This library is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details.


