mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2026-03-13 07:49:55 +08:00
Make ID a generic instead of forcing UUIDs
This commit is contained in:
@@ -21,7 +21,7 @@ class MockTransportLogoutNotSupported(BearerTransport):
|
||||
|
||||
class MockStrategyDestroyNotSupported(Strategy, Generic[models.UP]):
|
||||
async def read_token(
|
||||
self, token: Optional[str], user_manager: BaseUserManager[models.UP]
|
||||
self, token: Optional[str], user_manager: BaseUserManager[models.UP, models.ID]
|
||||
) -> Optional[models.UP]:
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user