Skip to main content

A fork of the original fastapi-jwt-auth compatible with Pydantic 2.* versions

Project description

FastAPI JWT Auth

Tests Coverage Status PyPI version Downloads


Documentation: https://indominusbyte.github.io/fastapi-jwt-auth

Source Code: https://github.com/jean-ek/fastapi-jwt-authV2

Original Legacy Library: https://github.com/IndominusByte/fastapi-jwt-auth


Notes:

This is a modified version of the original fastapi-jwt-auth library to add compatibility with pydantic versions 2.*

Features

FastAPI extension that provides JWT Auth support (secure, easy to use and lightweight), if you were familiar with flask-jwt-extended this extension suitable for you, cause this extension inspired by flask-jwt-extended 😀

  • Compatible with pydantic 2.* versions
  • Access tokens and refresh tokens
  • Freshness Tokens
  • Revoking Tokens
  • Support for WebSocket authorization
  • Support for adding custom claims to JSON Web Tokens
  • Storing tokens in cookies and CSRF protection

Installation

The easiest way to start working with this extension with pip

pip install fastapi-jwt-auth-compat

License

This project is licensed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi-jwt-auth-compat-1.0.1.tar.gz (20.8 kB view hashes)

Uploaded Source

Built Distribution

fastapi_jwt_auth_compat-1.0.1-py3-none-any.whl (26.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page