Extended JWT integration with Sanic
Project description
Sanic-JWT-Extended
What is Sanic-JWT-Extended?
Sanic-JWT-Extended is Sanic version of Flask-JWT-Extended. this is stable, but some features of Flask-JWT-Extended is not implemented yet. so this currently WIP.
When to use Flask-JWT-Extended?
Sanic-JWT-Extended not only adds support for using JSON Web Tokens (JWT) to Sanic for protecting views, but also many helpful (and optional) features built in to make working with JSON Web Tokens easier. These include:
- Support for adding custom claims to JSON Web Tokens
- Refresh tokens
- Token freshness and separate view decorators to only allow fresh tokens
Installation
pip install sanic-jwt-extended
Usage
Generating Documentation
You can generate a local copy of the documentation. After installing the requirements,
go to the docs
directory and run:
$ make clean && make html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.