Leo*_*o T 7 google-app-engine angularjs firebase firebase-authentication
我在启用Google 登录的Angular4 项目中使用Firebase Auth (firebase 4.1.3) 。在本地主机上工作时,一切都按预期工作。但是,在部署托管在 Google App Engine 上的应用程序时,身份验证弹出窗口失败并显示“auth/unauthorized-domain”错误。
如何在 Firebase 中将我的自定义域列入白名单?
已经完成的检查:
其他一些类似的 SO 问题是指检查之前的内容,甚至在将新域列入白名单以允许更改传播后最多等待 20 分钟。但这些建议都不适合我。
注意:完整的错误代码
{
code: "auth/unauthorized-domain"
message: "This domain (PROJECT.appspot.com) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab."
}
Run Code Online (Sandbox Code Playgroud)
任何帮助,将不胜感激。
好的,回答我自己的问题。我终于发现了问题:我正在部署旧版本的网络应用程序。所以它永远不会这样工作......
如果对其他人有用,上述配置 firebase Auth 的步骤是正确且足够的!
| 归档时间: |
|
| 查看次数: |
3378 次 |
| 最近记录: |