mirror of
				https://github.com/fastapi-users/fastapi-users.git
				synced 2025-11-04 14:45:50 +08:00 
			
		
		
		
	* Use a generic Protocol model for User instead of Pydantic
* Remove UserDB Pydantic schema
* Harmonize schema variable naming to avoid confusions
* Revamp OAuth account model management
* Revamp AccessToken DB strategy to adopt generic model approach
* Make ID a generic instead of forcing UUIDs
* Improve generic typing
* Improve Strategy typing
* Tweak base DB typing
* Don't set Pydantic schemas on FastAPIUsers class: pass it directly on router creation
* Add IntegerIdMixin and export related classes
* Start to revamp doc for V10
* Revamp OAuth documentation
* Fix code highlights
* Write the 9.x.x ➡️ 10.x.x migration doc
* Fix pyproject.toml
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			642 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			642 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from fastapi_users.authentication.strategy.base import (
 | 
						|
    Strategy,
 | 
						|
    StrategyDestroyNotSupportedError,
 | 
						|
)
 | 
						|
from fastapi_users.authentication.strategy.db import (
 | 
						|
    AP,
 | 
						|
    AccessTokenDatabase,
 | 
						|
    AccessTokenProtocol,
 | 
						|
    DatabaseStrategy,
 | 
						|
)
 | 
						|
from fastapi_users.authentication.strategy.jwt import JWTStrategy
 | 
						|
 | 
						|
try:
 | 
						|
    from fastapi_users.authentication.strategy.redis import RedisStrategy
 | 
						|
except ImportError:  # pragma: no cover
 | 
						|
    pass
 | 
						|
 | 
						|
__all__ = [
 | 
						|
    "AP",
 | 
						|
    "AccessTokenDatabase",
 | 
						|
    "AccessTokenProtocol",
 | 
						|
    "DatabaseStrategy",
 | 
						|
    "JWTStrategy",
 | 
						|
    "Strategy",
 | 
						|
    "StrategyDestroyNotSupportedError",
 | 
						|
    "RedisStrategy",
 | 
						|
]
 |