mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-08-01 09:47:18 -04:00
Update VaultMessageHandler.ts (#2268)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user