I have an ionic app which has tabs and authentication, the auth works perfectly but when logging out the tabs still display. Here is my login method:
this.authProvider.loginUser(email, password).then(
authData => {
this.loading.dismiss().then(() => {
this.navCtrl.setRoot(TabsPage);
});
And here is my logout method:
logOut(): void {
this.authProvider.logoutUser().then(() => {
this.navCtrl.setRoot(‘LoginPage’);
});
}
Any help appreciated