diff --git a/src/stores/auth.ts b/src/stores/auth.ts index 338d959..3f0507b 100644 --- a/src/stores/auth.ts +++ b/src/stores/auth.ts @@ -2,6 +2,7 @@ import { defineStore } from 'pinia' import { ref, computed } from 'vue' import type { Agent, AuthResponse } from '@/types' import { useApi } from '@/composables/useApi' +import router from '@/router' export const useAuthStore = defineStore('auth', () => { const token = ref(localStorage.getItem('access_token'))