I have an ionic angular app with cordova.
My app is crashing (it opens a page but i cant click anything) when I logout and router navigate to /login page.
I tried disabling auth guard but that is not the problem because sill happen without it.
If I navigate to login page without loggin out it works okey…
Any clue?
async logout() {
this._sm.add(
this.logoutRequest.send((await this._authService.logoutUser([])), {
success: (data) => {
console.log(data);
this._router.navigate(['auth/login']);
},
error: (err) => {
console.log(err)
}
})
);
}
4 posts - 2 participants