Pythonistas

Home to every Pythonistas out there. https://anandtripathi5.medium.com/membership

Member-only story

Getting started with JWT with Flask-JWT-extended

Anand Tripathi
Pythonistas
Published in
4 min readMar 15, 2023

--

Photo by ZSun Fu on Unsplash

There are several JWT (JSON Web Token) libraries available for Flask projects that you can use. Here are some of the most popular ones with GitHub stars and popularity:

Flask-JWT-Extended

GitHub stars: 1.9k
PyPI downloads: 990k

This library provides JWT support for Flask applications, with features such as token revocation and blacklisting, token freshness, and token refresh. It also supports multiple token identity verification methods.

PyJWT

GitHub stars: 5.6k
PyPI downloads: 45 million

PyJWT is a Python library for encoding and decoding JSON Web Tokens (JWTs). It is a lightweight library with no dependencies, making it easy to install and use.

Flask-JWT-Simple

GitHub stars: 380
PyPI downloads: 170k

Flask-JWT-Simple is a simplified version of Flask-JWT-Extended, providing a minimal set of features for handling JWTs in Flask applications. It is a lightweight and easy-to-use library.

Flask-Security-Too

GitHub stars: 1k
PyPI downloads: 130k

--

--

No responses yet