diff --git a/backend/app/services/auto_login_service.py b/backend/app/services/auto_login_service.py index 88cb793..81f1382 100644 --- a/backend/app/services/auto_login_service.py +++ b/backend/app/services/auto_login_service.py @@ -221,6 +221,12 @@ def _perform_zerodha_login( timeout=15, allow_redirects=False, ) + print( + f"[AUTO-LOGIN-DEBUG] twofa status={twofa_resp.status_code} " + f"location={twofa_resp.headers.get('Location', 'NONE')} " + f"body={twofa_resp.text[:300]}", + flush=True, + ) # Step 4: Follow redirects manually to intercept request_token request_token = None