diff --git a/src/store/storage/secure-storage.ts b/src/store/storage/secure-storage.ts index 0db14cf..7f58358 100644 --- a/src/store/storage/secure-storage.ts +++ b/src/store/storage/secure-storage.ts @@ -22,7 +22,7 @@ const parseStoredValue = (value: string): StorageValue => { const stringifyStorageValue = (value: StorageValue): string => { const stringifyValue = JSON.stringify(value); - return clientEnv.ENV === "prod" ? Security.encryptBase64(stringifyValue) : stringifyValue; + return stringifyValue; }; export const setLocalStorage = (key: string, value: StorageValue): void => { @@ -46,8 +46,7 @@ export const getLocalStorage = (key: string): StorageValue => { try { return JSON.parse(storedValue); } catch (fallbackError) { - localStorage.removeItem(key); - console.warn("[storage] localStorage parse failed; removed corrupted value", { + console.warn("[storage] localStorage parse failed", { key, decryptError, fallbackError, @@ -90,8 +89,7 @@ export const getSessionStorage = (key: string): StorageValue => { try { return JSON.parse(storedValue); } catch (fallbackError) { - sessionStorage.removeItem(key); - console.warn("[storage] sessionStorage parse failed; removed corrupted value", { + console.warn("[storage] sessionStorage parse failed", { key, decryptError, fallbackError,