Remove localStorage fallback - vault only for credentials

This commit is contained in:
russell@unturf.com 2026-01-23 09:52:56 -05:00
parent 638f6c01f4
commit 84d012dcfe

View file

@ -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;
}