Spaces:
Runtime error
Runtime error
Download auth/__init__.py from pykara/py-learn-backend: direct link, hf CLI and curl.
- Browser
- Download file 468 Bytes
-
https://huggingface.co/spaces/pykara/py-learn-backend/resolve/main/auth/__init__.py
- Command line
-
hf download hf://spaces/pykara/py-learn-backend/auth/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/pykara/py-learn-backend/resolve/main/auth/__init__.py
468 Bytes
| """ | |
| Authentication module | |
| """ | |
| from .models import User, BlacklistedToken, RefreshToken | |
| from .utils import token_required, anonymize_username | |
| from .json_database import ensure_database_initialized | |
| from .routes import auth_bp | |
| # IMPORTANT: initialize JSON DB at startup | |
| ensure_database_initialized() | |
| __all__ = [ | |
| "User", | |
| "BlacklistedToken", | |
| "RefreshToken", | |
| "token_required", | |
| "anonymize_username", | |
| "ensure_database_initialized", | |
| "auth_bp", | |
| ] | |