rmi-backend/app/auth/oauth.py
cryptorugmunch 659678782f refactor(auth): split 1223-LOC god-file into auth package (P3B.4)
Move app/auth.py to app/auth/__init__.py and add thematic submodule files:
- app/auth/jwt.py - JWT encode/decode helpers
- app/auth/passwords.py - bcrypt hash/verify
- app/auth/totp.py - 2FA TOTP helpers
- app/auth/store.py - user storage (_get_user, _save_user, etc.)
- app/auth/schemas.py - Pydantic models
- app/auth/deps.py - FastAPI dependencies (get_current_user, etc.)
- app/auth/oauth.py - Google/GitHub/X/Telegram OAuth flows
- app/auth/wallet.py - wallet signature auth (migrated from auth_wallet.py)

The legacy app/auth.py and app/auth_wallet.py become re-export shims.
Public API fully preserved across all 18+ importers. Routes unchanged (56).

Phase 3B of AUDIT-2026-Q3.md.
2026-07-06 21:26:27 +02:00

20 lines
424 B
Python

"""OAuth flows - re-exports from app.auth.
Phase 3B of AUDIT-2026-Q3.md.
Public API:
- google_auth_url, google_callback, google_callback_post
- github_auth_url, github_callback
- x_auth_url, x_callback
- telegram_auth
"""
from app.auth import ( # noqa: F401
github_auth_url,
github_callback,
google_auth_url,
google_callback,
google_callback_post,
telegram_auth,
x_auth_url,
x_callback,
)