rmi-backend/app/_archive/legacy_2026_07/auth.py

71 lines
1.6 KiB
Python

"""auth.py - DEPRECATED shim. Use app.domains.auth.__init__.
Phase 4 of AUDIT-2026-Q3.md moved this to app/domains/auth/__init__/.
This shim re-exports the public surface for legacy callers.
"""
from app.domains.auth.__init__ import * # noqa: F401,F403
from app.domains.auth.__init__ import ( # noqa: F401
EmailLoginRequest,
EmailRegisterRequest,
FRONTEND_URL,
GoogleAuthResponse,
JWT_ALGORITHM,
JWT_EXPIRY_DAYS,
JWT_SECRET,
NonceResponse,
TOTP_DIGITS,
TOTP_INTERVAL,
TOTP_ISSUER,
TOTP_WINDOW,
TelegramAuthRequest,
TwoFAEnableRequest,
TwoFALoginRequest,
TwoFASetupResponse,
TwoFAStatusResponse,
TwoFAVerifyRequest,
UserResponse,
WalletAuthResponse,
WalletNonceRequest,
WalletVerifyRequest,
generate_nonce,
get_current_user,
github_auth_url,
github_callback,
google_auth_url,
google_callback,
google_callback_post,
hash_password,
logger,
login_email,
register_email,
require_auth,
require_public_profile,
router,
telegram_auth,
twofa_disable,
twofa_enable,
twofa_login,
twofa_setup,
twofa_status,
twofa_verify,
verify_password,
wallet_nonce,
wallet_verify,
x_auth_url,
x_callback,
_build_totp,
_create_jwt,
_derive_user_id,
_generate_backup_codes,
_generate_qr_base64,
_generate_totp_secret,
_get_totp_uri,
_get_user,
_get_user_by_email,
_hash_backup_code,
_is_valid_email,
_save_user,
_verify_backup_code,
_verify_jwt,
_verify_totp,
)