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
pip install sanic-jwt-extended
You can generate a local copy of the documentation. After installing the requirements,
go to the
docs directory and run:
$ make clean && make html