rmi-backend/app/auth_wallet.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

8 lines
264 B
Python

"""Backward-compat shim — moved to app.auth.wallet in P3B."""
from app.auth.wallet import * # noqa: F401,F403
from app.auth.wallet import ( # noqa: F401
decode_signature,
get_or_create_wallet_user,
verify_auth_token,
verify_wallet_signature,
)