使用电子邮件密码检查Firebase Authenticatin状态

时间:2018-07-18 12:04:48

标签: android typescript firebase ionic2 firebase-authentication

我正在尝试在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';无法找到模块。

我也不确定,它如何检查特定的电子邮件和密码,是否需要有关方法的指南,任何建议或示例都将有所帮助

0 个答案:

没有答案
相关问题