Clear sessionStorage on logout.

This commit is contained in:
Leo Vasanko
2025-09-28 19:45:37 -06:00
parent ac0256c366
commit d5bc3e773d

View File

@@ -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)