mirror of
				https://github.com/fastapi-users/fastapi-users.git
				synced 2025-11-04 06:37:51 +08:00 
			
		
		
		
	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](8959a12d56/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 🎉
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			574 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			574 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""Ready-to-use and customizable users management for FastAPI."""
 | 
						|
 | 
						|
__version__ = "11.0.0"
 | 
						|
 | 
						|
from fastapi_users import models, schemas  # noqa: F401
 | 
						|
from fastapi_users.exceptions import InvalidID, InvalidPasswordException
 | 
						|
from fastapi_users.fastapi_users import FastAPIUsers  # noqa: F401
 | 
						|
from fastapi_users.manager import (  # noqa: F401
 | 
						|
    BaseUserManager,
 | 
						|
    IntegerIDMixin,
 | 
						|
    UUIDIDMixin,
 | 
						|
)
 | 
						|
 | 
						|
__all__ = [
 | 
						|
    "models",
 | 
						|
    "schemas",
 | 
						|
    "FastAPIUsers",
 | 
						|
    "BaseUserManager",
 | 
						|
    "InvalidPasswordException",
 | 
						|
    "InvalidID",
 | 
						|
    "UUIDIDMixin",
 | 
						|
    "IntegerIDMixin",
 | 
						|
]
 |