Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update VaultMessageHandler.ts (#2268)

Leendert de Borst10e74856176f
diff --git a/apps/browser-extension/src/entrypoints/background/VaultMessageHandler.ts b/apps/browser-extension/src/entrypoints/background/VaultMessageHandler.ts
index 3f14e10aa..268ee5492 100644
--- a/apps/browser-extension/src/entrypoints/background/VaultMessageHandler.ts
+++ b/apps/browser-extension/src/entrypoints/background/VaultMessageHandler.ts
@@ -283,10 +283,11 @@ export async function handleLockVault(): Promise<messageBoolResponse> {
* This is safe to call during forced logout as it preserves vault data.
*/
export async function handleClearSession(): Promise<messageBoolResponse> {
- // Clear auth tokens
+ // Clear auth tokens and last sync error
await storage.removeItems([
'local:accessToken',
'local:refreshToken',
+ 'local:lastSyncError',
]);
// Clear session-only data (security: encryption key must not persist)