javascript - Firebase 身份验证错误 "The given sign-in provider is disabled"

标签 javascript firebase firebase-authentication

已解决

我正在尝试对 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,如下所示:

enter image description here

此外,请确保只将需要并打开的登录选项放入 siginOptions 参数中,如果 Google 是您唯一需要的选项,则只需放入 firebase .auth.GoogleAuthProvider.PROVIDER_ID 并删除所有其他内容。

关于javascript - Firebase 身份验证错误 "The given sign-in provider is disabled",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55327973/

相关文章:

javascript - 如何让 Firebase Admin SDK 帐户遵守验证规则?

firebase - 我想在用户ID下发送数据,并且还获取相同的数据

javascript - 错误 :Display comments through ajax (from DB) (laravel 5. 2)

javascript - Ajax调用错误跨源请求: Pulling list of universities for autocomplete in rails

firebase - 如何检查 Field 是否存在于 firestore 数据库的文档中?

javascript - Firebase 使用电子邮件登录失败且未提供错误

javascript - 如何在页面加载时自动聚焦文本表单字段但在移动设备上隐藏软键盘?

javascript - 右键单击在 Firefox 中不断传播

iOS Swift Firebase - 如何使当前用户数据在整个应用程序中可用?

firebase - Flutter Firebase Google 登录时出现 "Browser or app may not be secure. Try using a different browser."错误