fix: show login when session token expires

This commit is contained in:
MSomnium Studios authored and GitHub committed 2025-09-19 15:09:26 +02:00
1 parent 4ff247e134
commit e6c674b3c6
5 files changed
+45 -3

No files matched your search

+5
View File
@@ -7,9 +7,11 @@ export const useAuthStore = defineStore("auth", {
state: (): {
user: IUser | null;
jwt: string;
logoutTimer: number | null;
} => ({
user: null,
jwt: "",
logoutTimer: null,
}),
getters: {
// user and jwt getter removed, no longer needed
@@ -37,5 +39,8 @@ export const useAuthStore = defineStore("auth", {
clearUser() {
this.$reset();
},
setLogoutTimer(logoutTimer: number | null) {
this.logoutTimer = logoutTimer;
},
},
});