From e81fdc24bbb2b711fc7500bece21a5298be4f59e Mon Sep 17 00:00:00 2001 From: Sirttas Date: Sat, 10 May 2025 09:33:43 +0200 Subject: [PATCH] fix is logged in check --- src/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth.ts b/src/auth.ts index 482a2ed..80bf05b 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -17,7 +17,7 @@ export const useAuthStore = defineStore('auth', () => { }); const user = ref(); - const isLoggedIn = computed(() => !!user.value); + const isLoggedIn = computed(() => user.value?.expired === false); const accessToken = computed(() => user.value?.access_token); const username = computed(() => user.value?.profile.name ?? ""); const userId = computed(() => user.value?.profile.sub ?? "");