diff --git a/app.vue b/app.vue index b091bed..15080ed 100644 --- a/app.vue +++ b/app.vue @@ -8,8 +8,6 @@ const nuxtApp = useNuxtApp(); const router = useRouter(); const authStore = useAuthStore(); -await authStore.whoami(); - console.log("compiling cards..."); const app = getCurrentInstance()?.appContext.app; if (!app) { @@ -23,6 +21,9 @@ console.log("compiling done"); useHead({ title: "Héron Realms", }); +onMounted(()=>{ + authStore.whoami(); +})