From e130bc5c0a6d4f6a6a0b83f34582971dae8ca6bf Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 29 Sep 2025 07:45:37 +0000 Subject: [PATCH] Clear sessionStorage on logout. --- frontend/src/stores/auth.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/stores/auth.js b/frontend/src/stores/auth.js index 57f086a..0688c1f 100644 --- a/frontend/src/stores/auth.js +++ b/frontend/src/stores/auth.js @@ -130,6 +130,7 @@ export const useAuthStore = defineStore('auth', { async logout() { try { await fetch('/auth/api/logout', {method: 'POST'}) + sessionStorage.clear() location.reload() } catch (error) { console.error('Logout error:', error)