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 ?? "");