谷歌浏览器中的 firebase 身份验证

标签 firebase firebase-authentication

firebase google 身份验证方法在 google chrome 中失败。我在开发工具控制台中看到了这两条消息。

OPTIONS https://www.googleapis.com/identitytoolkit/v3/relyingparty/getProjectConfig?key=my-app-key&cb=1514367607784 net::ERR_QUIC_PROTOCOL_ERROR

Info: The current domain is not authorized for OAuth operations. This will prevent signInWithPopup, signInWithRedirect, linkWithPopup and linkWithRedirect from working. Add your domain (my-web-domain.com) to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.

在登录方法 firebase 控制台中设置域条目。 在 google 控制台(api 和服务)中,有我的 firebase web api key ,限制 = 无,以及 OAuth2 条目,其中包含与 firebase 中显示的我的 firebase 项目匹配的正确客户端 ID 和客户端密码安慰。该域也在 Authorized JavaScript origins 部分中设置。授权重定向 URI 部分有一个条目 https://fbase-unique-name.firebaseapp.com/__/auth/handler

据我所知,这在大约一周前开始失败,并且只发生在 chrome 上。我已经在 chromium、firefox、egde、brave in linux 和 windows 上试过,它可以工作。 提前致谢

最佳答案

我有类似的问题,只发生在最新的 chrome 中,但我的错误是

auth/network-request-failed

我的解决方案是在 https://www.google.com/chrome/browser/beta.html 上下载 beta chrome channel 不知何故错误不再弹出,但不确定是什么导致了问题。

关于谷歌浏览器中的 firebase 身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47990285/

相关文章:

ios - 推送通知在 Firebase 4.0 中不起作用

angularjs - Firebase 拥有数千个 on() 事件监听器,设计良好

android - 如果应用程序处于 Activity 状态,则无法在 channel 上发布通知

android - 更改 Firebase 包名称

android - 使用 Firebase 登录 Android - statusCode DEVELOPER_ERROR

android - FirebaseUser 图片到 ImageView

javascript - Firebase 密码验证不起作用

firebase - Flutter Desktop 中是否可以使用任何类型的数据库

javascript - firebase如何获取过滤后的文档

Android Firebase UI、PhoneAuth 从微调器对话框中删除不必要的国家/地区