A value of type 'AuthResult' can't be assigned to a variable of type 'FirebaseUser'

前端 未结 2 1732
我寻月下人不归
我寻月下人不归 2021-01-23 22:57

I\'m implementing the google sign in method in my project using Firebase Google sign in option, when the add the below line in my code its throwing me the error like:

         


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-23 23:26

    Simple solution (caused by a type change):

    Firebase has recently changed its type 'FirebaseUser' (which is depreciated now) type to 'User'. Try renaming the same in your code and that should be the solution. In my case it worked for most of the same errors.

    Best

提交回复
热议问题