I have an iOS app built on Quasar using Capacitor. On web, when the user is logged out, going to the home page forces the user to the authentication page via routes. On iOS, after the splashpage, the user gets forced to the home/index page, the route is fired, but the user is never re-routed to the auth page, the app keeps trying to reload the index/home page, so there is a stuck loop.
So again, it works and does not throw an infinite loop on web, but not during simulation via capacitor/xcode. I am completely new to capacitor and xcode. Is there a configuration that is forcing the user to a specific page?
This is the code that gets stuck in the loop.
Router.beforeEach(async (to, from, next) => {
const authStore = useGenStore();
if (authStore.isAuthenticated != true) {
await authStore.handleAuth();
}
//routes
}