FirebaseAuth:未为类型“EmailAuthProvider”定义方法“getCredential”

时间:2021-02-21 19:39:56

标签: firebase flutter firebase-authentication

我有以下问题:

enter image description here

enter image description here

我是 Firebase 新手,不知道该如何解决。

谢谢!

2 个答案:

答案 0 :(得分:1)

API 已更改,因此您可以尝试:

credential = EmailAuthProvider.credential(email, password);

答案 1 :(得分:0)

他们改变了一些方法的名称。您现在应该编写 EmailAuthProvider.credentials

相关问题