mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-26 01:11:13 -05:00
Fix remaining catch blocks
This commit is contained in:
@@ -64,7 +64,7 @@ class AuthStorage {
|
||||
// Clean URL
|
||||
window.history.replaceState({}, document.title, window.location.pathname);
|
||||
}
|
||||
} catch (error) {
|
||||
} catch (error: unknown) {
|
||||
authError('[AuthStorage] Failed to recover session from URL:', error);
|
||||
}
|
||||
}
|
||||
@@ -115,7 +115,7 @@ class AuthStorage {
|
||||
}
|
||||
authLog('[AuthStorage] Using memory storage');
|
||||
return this.memoryStorage.get(key) || null;
|
||||
} catch (error) {
|
||||
} catch (error: unknown) {
|
||||
authError('[AuthStorage] Error reading from storage:', error);
|
||||
return this.memoryStorage.get(key) || null;
|
||||
}
|
||||
@@ -129,7 +129,7 @@ class AuthStorage {
|
||||
}
|
||||
// Always keep in memory as backup
|
||||
this.memoryStorage.set(key, value);
|
||||
} catch (error) {
|
||||
} catch (error: unknown) {
|
||||
authError('[AuthStorage] Error writing to storage:', error);
|
||||
// Fallback to memory only
|
||||
this.memoryStorage.set(key, value);
|
||||
@@ -142,7 +142,7 @@ class AuthStorage {
|
||||
this.storage.removeItem(key);
|
||||
}
|
||||
this.memoryStorage.delete(key);
|
||||
} catch (error) {
|
||||
} catch (error: unknown) {
|
||||
authError('[AuthStorage] Error removing from storage:', error);
|
||||
this.memoryStorage.delete(key);
|
||||
}
|
||||
@@ -183,7 +183,7 @@ class AuthStorage {
|
||||
// Clear memory storage
|
||||
this.memoryStorage.clear();
|
||||
authLog('[AuthStorage] ✓ All auth storage cleared');
|
||||
} catch (error) {
|
||||
} catch (error: unknown) {
|
||||
authError('[AuthStorage] Error clearing storage:', error);
|
||||
// Still clear memory storage as fallback
|
||||
this.memoryStorage.clear();
|
||||
|
||||
Reference in New Issue
Block a user