已解决
我正在尝试对 Firebase 进行身份验证。我完成了我的代码,当我尝试它时,它说:
The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.
我尝试在 YouTube 和 Google 上进行搜索。但我没有找到任何东西。
最佳答案
该消息告诉您确切的操作,请转至 firebase console您的项目并打开相应的身份验证方法。如果您只想使用 Gmail (Google) 登录,那么只需在身份验证选项卡内的登录方法中启用 Google,如下所示:
此外,请确保只将需要并打开的登录选项放入 siginOptions
参数中,如果 Google 是您唯一需要的选项,则只需放入 firebase .auth.GoogleAuthProvider.PROVIDER_ID
并删除所有其他内容。
关于javascript - Firebase 身份验证错误 "The given sign-in provider is disabled",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55327973/