An open source Sanic extension that provides JWT support (currently WIP)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
examples
sanic_jwt_extended
tests
.gitignore
LICENSE
README.md
readthedocs.yml
requirements.txt
setup.py

README.md

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

View the documentation online

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