Fix auth #72

Merged
KZix merged 3 commits from na/fix-auth into develop 2025-12-23 20:06:44 +00:00
Showing only changes of commit e47a453588 - Show all commits
+2 -3
View File
@@ -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)