Flask-JWT-Extended
Extended JWT integration with Flask
Decision gist · record as of 2026-08-14
Yes. Flask-JWT-Extended is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It is a standard choice for JWT authentication in Flask applications and is widely used (top 5000 packages by downloads). Install it if you need JWT authentication in Flask; the API is straightforward and the optional features are genuinely useful for production applications.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; earlier Python 3.x versions (3.6–3.9) are not supported by this release.
- Low install friction with a pure-Python wheel distribution.
- Actively maintained as of 2026-07-02 with recent releases; the project has 1581 stars and follows semantic versioning.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) allows use in commercial and private projects with minimal restrictions; attribution is required but no copyleft obligations apply.
last release 2026-05-13 (93 days) · last repo commit 2026-07-02 · 1,581 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 13,637,572 downloads/mo, #1,270 on PyPI
Alternatives
Verify before relying
pip install flask-jwt-extended
from flask import Flask
from flask_jwt_extended import JWTManager, create_access_token
app = Flask(__name__)
app.config['JWT_SECRET_KEY'] = 'your-secret-key'
jwt = JWTManager(app)
access_token = create_access_token(identity='user_id')- Whether the package's optional features (cookie storage, CSRF protection, automatic user loading) require additional dependencies beyond the three listed runtime deps.
- Performance characteristics when handling high token volumes or large custom claims payloads.
- Real-world security audit status or known attack vectors specific to this implementation.
What it is and what it does
Flask-JWT-Extended is a Flask extension that integrates JSON Web Token authentication into your application. It wraps PyJWT and Werkzeug to provide decorators and utilities for protecting routes, validating tokens, and managing token state. The package handles the boilerplate of JWT setup so you can focus on application logic rather than cryptographic details.
Beyond basic token creation and validation, it offers optional features like refresh tokens (for long-lived sessions without re-authentication), token blocklisting (revocation), custom claims validation, fresh-token enforcement for sensitive operations, and cookie-based storage with CSRF protection. You configure it once on your Flask app and then use decorators like `@jwt_required()` on routes that need authentication.
Use it for
- Protect REST API endpoints by requiring valid JWT tokens in request headers before allowing access.
- Implement login flows with separate access and refresh tokens to balance security and user experience.
- Revoke tokens on logout or when user permissions change by maintaining a blocklist.
- Add custom claims (user roles, permissions) to tokens and validate them on each request.
- Enforce fresh tokens for sensitive operations like password changes or account deletions.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Flask-JWT-Extended is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It is a standard choice for JWT authentication in Flask applications and is widely used (top 5000 packages by downloads). Install it if you need JWT authentication in Flask; the API is straightforward and the optional features are genuinely useful for production applications.
Install
flask-jwt-extended on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained as of 2026-07-02 with recent releases; the project has 1581 stars and follows semantic versioning.
Requires Python 3.10 or later; earlier Python 3.x versions (3.6–3.9) are not supported by this release.
License in practice
MIT license (permissive) allows use in commercial and private projects with minimal restrictions; attribution is required but no copyleft obligations apply.
Quickstart
pip install flask-jwt-extended
from flask import Flask
from flask_jwt_extended import JWTManager, create_access_token
app = Flask(__name__)
app.config['JWT_SECRET_KEY'] = 'your-secret-key'
jwt = JWTManager(app)
access_token = create_access_token(identity='user_id')
Verify before relying
- Whether the package's optional features (cookie storage, CSRF protection, automatic user loading) require additional dependencies beyond the three listed runtime deps.
- Performance characteristics when handling high token volumes or large custom claims payloads.
- Real-world security audit status or known attack vectors specific to this implementation.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesWerkzeugFlaskPyJWT |
| Maintenance | Actively maintained 93 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 13,637,572 / month, #1,270 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: FlaskIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules |
Evidence: flask_jwt_extended-4.7.4-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “flask jwt authentication”
- Flask-JWT-ExtendedAdds JSON Web Token (JWT) authentication to Flask applications,…
- Flask-CognitoFlask-Cognito integrates AWS Cognito JWT authentication into Flask…
- Flask-AWSCognitoIntegrates AWS Cognito user authentication into Flask applications,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also Flask-Cognito · Flask-HTTPAuth · sanic-jwt · django-ninja-jwt · djangorestframework-jwt · Flask-AWSCognito · okta-jwt-verifier · jose · edx-drf-extensions · Flask-BasicAuth