I am using NUXT 2.0 (mode = universal) with the Auth module which for me is setup & working correctly!
When viewing any page after logging if I use example code. I can see the user no problem.
<div v-if="$auth.loggedIn">
Logged In {{ $auth.user.email}}
</div>
If I look at VUEX in Dev tools I can also see the state.auth.user: https://d.pr/i/3pXcLa
But if I add some middleware and load the page the store.state.user is empty. Example simple code.
export default function ({ store, redirect }) {
console.log(store.state.auth)
}
Am I using the middleware correctly?
Really hope someone can help.