# vimalloc/flask-jwt-extended

An open source Flask extension that provides JWT support (with batteries included)!

Repository: https://github.com/vimalloc/flask-jwt-extended
Canonical: https://ross.abutalabs.com/products/flask-jwt-extended
Homepage: http://flask-jwt-extended.readthedocs.io/en/stable/
Language: Python
License: MIT
License Family: permissive
Topics: flask, jwt, flask-jwt-extended, flask-jwt
Last push: 2026-08-20T13:15:09+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 83, longevity 100
- inputs: {"age_days": 3641, "days_push": 13, "days_rel": 112, "gap_med": 3.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1581, forks 253 (observed 2026-08-28T04:05:06.959592+00:00)

## What it is
Flask-JWT-Extended is an open source Flask extension that adds JSON Web Token (JWT) support for protecting routes, with many optional batteries-included features. It supports custom claims, automatic user loading, refresh and fresh tokens, token revocation, and cookie-based storage with CSRF protection.

## Use cases
- add jwt authentication to a flask api
- protect flask routes with  web tokens
- implement refresh tokens in flask
- revoke or blocklist jwt tokens in flask
- store jwt tokens in cookies with csrf protection
- load current user from jwt token in flask
- add custom claims to jwts in flask

## When to choose
- you are building a Flask application or API that needs token-based authentication
- you want batteries-included JWT features like refresh tokens, fresh tokens, and revocation out of the box
- you need cookie-based token storage with built-in CSRF protection
- you want a well-documented, actively maintained, MIT-licensed Flask extension

## When to avoid
- your project does not use Flask (consider a framework-agnostic JWT library like PyJWT instead)
- you need OAuth2/OpenID Connect flows rather than simple JWT auth
- you are building a non-Python backend

## Facets
- artifact type: library
- maturity: stable
- function: auth, middleware, web-framework
- domain: web-development, backend, security, apis
- platform: python
- tags: flask, jwt, -web-tokens, refresh-tokens, csrf-protection, token-revocation

## Member repositories
- vimalloc/flask-jwt-extended (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:06.959592+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:56:34.935289+00:00, confidence not recorded.
  - readme: https://github.com/vimalloc/flask-jwt-extended (fetched 2026-08-28T04:05:06.959592+00:00, sha f1b4d4c73f53)
  - registry_pypi: https://pypi.org/pypi/flask-jwt-extended/json (fetched 2026-08-29T11:27:25.192106+00:00, sha 6a761eaf1f9a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
