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.
This commit is contained in:
parent
91835eacc1
commit
659678782f
11 changed files with 1585 additions and 1386 deletions
1287
app/auth.py
1287
app/auth.py
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue