This commit is contained in:
Julien Nahum
2023-12-15 12:32:17 +01:00
parent a3a9254665
commit fa20945571
4 changed files with 19 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
export default defineNuxtRouteMiddleware((to, from) => {
const authStore = useAuthStore()
authStore.loadTokenFromCookie()
useAuthStore().fetchUserIfNotFetched()
authStore.fetchUserIfNotFetched()
})