Upgraded to Firebase 5 and having Auth issues. Cannot convert value of type '(User?, Error?)

前端 未结 2 457
旧时难觅i
旧时难觅i 2020-12-11 14:45

I just upgraded my pods for Firebase and got a ton of errors. I used the Docs on the Firebase Docs webpage so I was able to fix most of them. This error I\'m stuck on and ne

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-11 15:00

    If you look at the release notes you see they changed some stuff. Essentially instead of returning a user, they now return another object (AuthDataResult) containing a user.

    This means you need to a FIRAuthDataResultCallback.

提交回复
热议问题