fix is logged in check
This commit is contained in:
1 parent
778de8ca14
commit
e81fdc24bb
1 file changed
+1
-1
+1
-1
@@ -17,7 +17,7 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
});
|
||||
|
||||
const user = ref<User>();
|
||||
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 ?? "");
|
||||
|
||||
Reference in new issue
Block a user