From d5bc3e773d4fe49938be262eb1cb6c33b3ce2f26 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sun, 28 Sep 2025 19:45:37 -0600 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)