I tried to use canActivate on ionic2, but it seems to have no effect. I am trying to create an authentication mechanism. The method called on the canActivate is
static requireAuth(): boolean {
const { auth, router } = AuthRouteHelper;
console.log('requiring auth');
if (!auth.authenticated) router.navigate(['/Login']);
return auth.authenticated;
}