Level 2
export default function (ctx) {
if (ctx.app.$auth.$state.loggedIn) {
return ctx.app.$auth.redirect('home')
}
}
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
User is authenticated but in middleware auth state is undefined. When page is fully loaded is showing right information in vuex state tab.
Please or to participate in this conversation.