Fastapi-users

Latest version: v14.0.1

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 17

12.1.0

Pydantic V2 support
-------------------

This version brings Pydantic V2 support. Like FastAPI, it keeps backward-compatibility with Pydantic V1, so you can upgrade safely and at your own pace.

Apart your own Pydantic schemas, no changes are needed to your FastAPI Users setup.

Thanks AdamIsrael for the initial work and research 🎉

12.0.0

Breaking changes
----------------

* Drop Python 3.7 support

11.0.0

Breaking changes
----------------

* Transport classes now always build full response objects instead of using the implicit FastAPI `Response` object.
* If you were not implementing your own custom transport classes, you will have nothing to do.
* If you implemented custom classes, you should adapt them so they return a `Response` object. [[Example](https://github.com/fastapi-users/fastapi-users/blob/8959a12d56212efe01b8cf3c37f0659cc25dcc19/fastapi_users/authentication/transport/bearer.py)]
* Cookie transport now returns a proper `204 No Content` response on logout, which should please OpenAPI Generators. Thanks caniko 🎉

New features
------------

* `on_after_login` method now accepts `response` in argument, which is the `Response` object built by the transport. [[Documentation](https://fastapi-users.github.io/fastapi-users/latest/configuration/user-manager/#on_after_login)] Thanks sorasful 🎉

Bug fixes
---------

* Fix 1166: add type hint to /users/{id} routes. Thanks gegnew 🎉
* Fix `/verify` route returning `null` user ID with Beanie. Thanks jankadel 🎉

10.4.2

Documentation
-------------

* Update documentation for Beanie.

10.4.1

Bug fixes & improvements
---------

* Fix 1172: missing `is_verified_by_default` argument on `get_oauth_router` method
* Bump dependencies:
* `python-multipart ==0.0.6`

10.4.0

New features
------------

* SQLAlchemy 2.0 support [[Documentation](https://fastapi-users.github.io/fastapi-users/10.4/configuration/databases/sqlalchemy/)]
* If you need to stay on SQLAlchemy 1.4, you can pin this dependency: `fastapi-users-db-sqlalchemy<5.0.0`
* Allow to set `is_verified` flag to `True` by default after OAuth registration [[Documentation](https://fastapi-users.github.io/fastapi-users/10.4/configuration/oauth/#set-is_verified-to-true-by-default)]

Improvements
------------

* Bump dependencies
* `httpx-oauth >=0.4,<0.12`

Page 2 of 17

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.