Clear sessionStorage on logout.

This commit is contained in:
2025-09-29 07:45:37 +00:00
parent 2df444b80f
commit e130bc5c0a
+1
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)