我正在尝试在Firebase上注册电子邮件/密码后检查身份验证状态,以保持用户在Ionic2 TypeScript Android应用程序中的登录状态
this.authService.getAuth().subscribe(state => {
this.authenticated = this.authService.authenticated;
if(this.authenticated) {
this.navCtrl.setRoot(HomePage);
} else {
this.navCtrl.setRoot(RegisterPage);
}
});
但是我不确定如何从构造函数中使用public authService: Auth
,因为import { Auth } from '../providers/auth';
无法找到模块。
我也不确定,它如何检查特定的电子邮件和密码,是否需要有关方法的指南,任何建议或示例都将有所帮助