Spaces:
Runtime error
Runtime error
| """ | |
| 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", | |
| ] | |