diff --git a/src/stores/auth.ts b/src/stores/auth.ts index db5fe8f..338d959 100644 --- a/src/stores/auth.ts +++ b/src/stores/auth.ts @@ -49,6 +49,7 @@ export const useAuthStore = defineStore('auth', () => { token.value = null user.value = null localStorage.removeItem('access_token') + router.push('/login') } // Initialize user on store creation if token exists