-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed
Description
Ionic version: (check one with "x")
[x ] 3.x
I'm submitting a ... (check one with "x")
[x ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
Expected behavior:
Steps to reproduce:
I would like to handle the token timeout issue, and redirect to the login page, but this.navCtrl.push(LoginPage) doesn't work for me
Related code:
private listenToAuthorizationEvents() {
this.events.subscribe('user:unauthorized', () => {
this.redirectToLoginPage();
});
}
private redirectToLoginPage() {
this.navCtrl.push(LoginPage);
}
Other information:
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
insert the output from ionic info here
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels