GitPedia

Sanic jwt

Authentication, JWT, and permission scoping for Sanic

From ahopkins·Updated February 20, 2026·View on GitHub·

Sanic JWT adds authentication protection and endpoints to [Sanic]. The project is written primarily in Python, distributed under the MIT License license, first published in 2017. Key topics include: access-token, authentication, jwt, permissions, python.

Latest release: v1.8.0Version 1.8.0
June 28, 2022View Changelog →

Sanic JWT

Latest PyPI version
Python versions
Version status
MIT License

Build Status
Documentation
Codacy Badge
Test Coverage
Code style: black

Sanic JWT adds authentication protection and endpoints to Sanic.

It is both easy to get up and running, and extensible for the
developer. It can act to protect endpoints and also provide authentication scoping, all wrapped into a nice JWT.

Read the documentation | View the source code


What do I do?

It's easy: (1) install, (2) initialize, and (3) authenticate.

Install:

pip install sanic-jwt

Initialize:

python
from sanic import Sanic from sanic_jwt import Initialize def my_authenticate(request, *args, **kwargs): ... app = Sanic() Initialize( app, authenticate=my_authenticate )

Authenticate:

http://localhost/auth

Can I customize it?

Definitely! Sanic JWT is made to allow developers to customize the operation to fit their needs. Check out the documentation to learn how.

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from ahopkins/sanic-jwt via the GitHub API.Last fetched: 6/26/2026