diff --git a/utils/auth.py b/utils/auth.py index c5e0efd..14f8ee2 100644 --- a/utils/auth.py +++ b/utils/auth.py @@ -124,21 +124,3 @@ def logout(main_frame: Frame, verbose: bool = True) -> None: print("Confirmation dialog not found, may have auto-logged out") time.sleep(2) # Wait for logout to complete - - -def close_session(browser: Browser, context: BrowserContext) -> None: - """ - Close browser session - - Args: - browser: Browser instance - context: Browser context - """ - # Check if auto-close browser is enabled - auto_close = os.getenv("ERP_AUTO_CLOSE_BROWSER", "true").lower() in ("true", "1", "yes") - - if auto_close: - context.close() - browser.close() - else: - print("Note: Browser not auto-closed (ERP_AUTO_CLOSE_BROWSER=false)")