I'm having trouble with Pinia, when i refresh the page I'm sending back to the login page.
And when I look to auth session info, the isAuthenticated is true.
Can you guys help me?
HI,
Sorry for the late reply.
Could you please specify which Metronic version you are using?
In file src/router/index.ts we have the statement below, if isAuthenticated is equal to true, we do not redirect user to the authentication page.
if (to.meta.middleware == "auth") {
if (authStore.isAuthenticated) {
next();
} else {
next({ name: "sign-in" });
}
} else {
next();
}