Spaces:
No application file
No application file
Download auth/manager.py from Genos77/Rag-project: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/spaces/Genos77/Rag-project/resolve/main/auth/manager.py
- Command line
-
hf download hf://spaces/Genos77/Rag-project/auth/manager.py
-
curl -L -o manager.py https://huggingface.co/spaces/Genos77/Rag-project/resolve/main/auth/manager.py
379 Bytes
| from fastapi_users import BaseUserManager, UUIDIDMixin | |
| from auth.database import User | |
| from config import settings | |
| import uuid | |
| SECRET = settings.JWT_SECRET_KEY | |
| class UserManager(UUIDIDMixin, BaseUserManager[User, uuid.UUID]): | |
| reset_password_token_secret = SECRET | |
| verification_token_secret = SECRET | |
| async def get_user_manager(): | |
| yield UserManager() | |