Flask Jwt Extended

screenshot of Flask Jwt Extended
flask

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

Overview:

Flask-JWT-Extended is a valuable tool for adding JSON Web Tokens (JWT) support to Flask, enhancing security for protected routes. Additionally, it offers various convenient features to simplify working with JWTs, such as customization, user handling, refresh tokens, token revoking, and CSRF protection.

Features:

  • Custom Claims: Add custom claims to JWTs for additional flexibility.
  • User Loading: Automatically load current user information.
  • Claims Validation: Validate custom claims on received tokens.
  • Refresh Tokens: Support for refreshing tokens to extend their validity.
  • Token Revoking/Blocklisting: Ability to revoke or blocklist tokens.
  • Cookie Storage: Store tokens in cookies for better security.
  • CSRF Protection: Protect against Cross-Site Request Forgery attacks.
flask
Flask

Flask is a lightweight and popular web framework for Python, known for its simplicity and flexibility. It is widely used to build web applications, providing a minimalistic approach to web development with features like routing, templates, and support for extensions.