Fix logged in user stall (#1114)

This commit is contained in:
Geometrically
2023-04-22 09:59:46 -07:00
committed by GitHub
parent 4be6b11c1e
commit d9b3ba0ff2
3 changed files with 5 additions and 11 deletions

View File

@@ -1,11 +1,10 @@
export default defineNuxtPlugin(async (nuxtApp) => {
const authStore = await useAuth()
const userStore = await useUser(true)
await useUser()
const cosmeticsStore = useCosmetics()
const tagsStore = useTags()
nuxtApp.provide('auth', authStore.value)
nuxtApp.provide('user', userStore)
nuxtApp.provide('cosmetics', cosmeticsStore.value)
nuxtApp.provide('tag', tagsStore.value)
nuxtApp.provide('notify', (notif) => addNotification(notif))