我正在使用 firestore 编写一个有角度的应用程序。我正在调用 Auth::createUserWithEmailAndPassword( 来注册用户并调用 Auth::signInWithEmailAndPassword。
在这两种情况下,用户都会登录并触发以下订阅
this.afa.authState.subscribe( authState => {
this.firebaseUser = authState;
if (authState) {
this.onLoginSuccessfulReceivedFromFirebase();
} else {
this.onLogout();
}
this.isLoggedIn = authState != null;
});
有没有办法让我确定回调是否在 createUserWithEmailAndPassword 期间自动登录或在回调函数中专门调用 Auth::signInWithEmailAndPassword 时被触发
跃然一笑
翻翻过去那场雪
相关分类