From 7d49209c0b1320794f4608c7c7a026c66e32d399 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Sat, 21 Feb 2026 02:30:52 +0100 Subject: [PATCH] feat: implement smart scraper authentication with cookie persistence and visual status indicators --- frontend/electron/main.ts | 3 ++- frontend/src/pages/Dashboard.tsx | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/frontend/electron/main.ts b/frontend/electron/main.ts index f61e378..a009e28 100644 --- a/frontend/electron/main.ts +++ b/frontend/electron/main.ts @@ -495,7 +495,8 @@ ipcMain.handle('open-external', (event, url: string) => shell.openExternal(url)) ipcMain.handle('open-steam-login', async (event, expectedSteamId: string) => { const loginSession = session.fromPartition('persist:steam-login'); - await loginSession.clearStorageData({ storages: ['cookies', 'localstorage', 'indexdb'] }); + // Removed: automatic clearStorageData to allow cookie persistence + return new Promise((resolve) => { const loginWindow = new BrowserWindow({ width: 800, height: 700, parent: mainWindow || undefined, modal: true, title: 'Login to Steam', diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx index d124445..f80e991 100644 --- a/frontend/src/pages/Dashboard.tsx +++ b/frontend/src/pages/Dashboard.tsx @@ -510,18 +510,20 @@ const AccountRow: React.FC<{ )} {/* Scraper Auth Button - Controls the optional cooldown tracking */} - + - {account.steamLoginSecure ? : } + {account.steamLoginSecure && !account.authError ? : (account.authError ? : )}