解决方法
答案是在
API documentation:
-sendPasswordResetWithEmail:completion:
Initiates a password reset for the given email address.
See 07001 for a list of error codes that are common to all API methods.
在Swift 3.x和Firebase 3.x中,它看起来像这样:
FIRAuth.auth()?.sendPasswordReset(withEmail: "email@email") { error in // Your code here }
编辑:
Firebase 4将Firebase功能更改为与Swift中的命名约定更加一致.
Auth.auth().sendPasswordReset(withEmail: "email@email") { error in // Your code here }