Firebase 身份验证错误“给定的登录提供程序已禁用" [英] Firebase authentication error "The given sign-in provider is disabled"

查看:23
本文介绍了Firebase 身份验证错误“给定的登录提供程序已禁用"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已解决

我正在尝试在 firebase 上进行身份验证.我完成了我的代码,当我尝试它时,它说:

<块引用>

此 Firebase 项目已禁用给定的登录提供程序.在 Firebase 控制台的身份验证"部分的登录方法选项卡下启用它.

我尝试在 YouTube 和 Google 上进行搜索.但我什么也没找到.

解决方案

该消息告诉您具体该怎么做,请转至

另外,请确保您只在 siginOptions 参数中放置您需要并打开的登录选项,如果 Google 是您唯一想要的,那么只需放置 firebase.auth.GoogleAuthProvider.PROVIDER_ID 并删除其他所有内容.

SOLVED

I am trying to put authentication on firebase. I finish my code, and, when I tried it, it says:

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.

I tried to search on YouTube and Google. But I didn´t find anything.

解决方案

The message is telling you exactly what to do, go to the firebase console of your project and turn the corresponding auth methods on. If you are only trying to use Gmail (Google) login, then just enable Google in the sign-in methods inside the Authentication tab, like this:

Also, make sure that you only put the sign-in options that you needed and turned on inside the siginOptions parameter, if Google is the only one you want, then just put firebase.auth.GoogleAuthProvider.PROVIDER_ID and remove everything else.

这篇关于Firebase 身份验证错误“给定的登录提供程序已禁用"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆