I'm getting an error “Error type 'AuthResult' is not a subtype of type 'FirebaseUser' in type cast” when I'm trying to login or signup

后端 未结 6 1480
执笔经年
执笔经年 2021-01-11 10:00

I\'m making a flutter app for my college project, where I\'m adding a login and signup page and authenticating it via Firebase, and when I click login the debug console says

6条回答
  •  庸人自扰
    2021-01-11 10:20

    It has been changed what you should do is AuthResult result = await _firebaseAuth.signInWithEmailAndPassword( email: email, password: password); FirebaseUser user = result.user;

提交回复
热议问题