From 84d012dcfea47ff961a7ed4d100050bd9cf21296 Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Fri, 23 Jan 2026 09:52:56 -0500 Subject: [PATCH] Remove localStorage fallback - vault only for credentials --- clients/javascript/sync/src/un.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/clients/javascript/sync/src/un.js b/clients/javascript/sync/src/un.js index f2d9f8c..db6a95d 100644 --- a/clients/javascript/sync/src/un.js +++ b/clients/javascript/sync/src/un.js @@ -338,11 +338,10 @@ function loadCredentialsFromCsv(csvPath, accountIndex = 0) { } /** - * Load credentials from vault or localStorage. [Browser only] + * Load credentials from vault. [Browser only] * Priority: * 1. UnsandboxVault (own encrypted vault, requires unlocked via portal UI) * 2. External vaults (window.UncloseVault for uncloseai.com integration) - * 3. Plain localStorage (legacy fallback) */ function loadCredentialsFromStorage() { if (!IS_BROWSER) return null; @@ -373,21 +372,6 @@ function loadCredentialsFromStorage() { // External vault not available } - // Priority 3: Plain localStorage (legacy fallback) - try { - const useUnsandbox = localStorage.getItem('useUnsandbox') === 'true'; - if (!useUnsandbox) return null; - - const publicKey = localStorage.getItem('unsandboxPublicKey'); - const secretKey = localStorage.getItem('unsandboxSecretKey'); - - if (publicKey && secretKey) { - return [publicKey, secretKey]; - } - } catch (e) { - // localStorage not available - } - return null; }