且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Firebase忘记了密码-如何识别用户是通过电子邮件还是Facebook登录?

更新时间:2023-12-01 17:59:46

您可以使用以下方法查找链接到帐户的提供程序: fetchProvidersForEmail

You can lookup the providers linked to an account using: fetchProvidersForEmail

要重置密码,请使用: sendPasswordResetWithEmail

To reset the password, use: sendPasswordResetWithEmail

还有关于如何发送密码重置并重定向回应用程序的说明: https://firebase.google.com/docs/auth/ios/通过电子邮件传递状态

There are also instructions on how to send the password reset and redirect back to app: https://firebase.google.com/docs/auth/ios/passing-state-in-email-actions