diff --git a/frontend/src/stores/auth.js b/frontend/src/stores/auth.js index f00e752..7ab9a72 100644 --- a/frontend/src/stores/auth.js +++ b/frontend/src/stores/auth.js @@ -4,9 +4,8 @@ import { useAPIStore } from './api' export const useAuthStore = defineStore('auth', () => { - // Token timeout constants (in milliseconds) - const DEFAULT_TIMEOUT = 5 * 60 * 1000 // 5 minutes - const REMEMBER_ME_TIMEOUT = 365 * 24 * 60 * 60 * 1000 // 1 year + const DEFAULT_TIMEOUT = 5 * 60 * 1000 + const REMEMBER_ME_TIMEOUT = 365 * 24 * 60 * 60 * 1000 const currentUser = ref(undefined) const token = ref(localStorage.getItem('token') || null)