登录时 Firebase CLI redirect_uri_mismatch

标签 firebase firebase-tools

无法登录到 firebase CLI。

firebase login 

在浏览器中生成如下错误提示:

The redirect URI in the request, http://localhost:9005, does not match the ones authorized for the OAuth client. Visit https://console.developers.google.com/apis/credentials/oauthclient/...?project=... to update the authorized redirect URIs.

观察:

  • http://localhost:9005并且每个可能的变体,包括尾部斜线和 https 协议(protocol)都列在网络 oauth 客户端下

  • ?project=xxx 指向错误的项目 ID

firebase login:ci --interactivefirebase login --reauth 产生完全相同的结果。

github 问题被忽略了。我真的很想使用云功能特性

最佳答案

解决方案是改用下面的命令:

firebase login --no-localhost

关于登录时 Firebase CLI redirect_uri_mismatch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44844411/

相关文章:

node.js - Firebase admin sdk (node.js) 数据库请求卡住

javascript - 您如何使用 Jest 模拟 Firebase Firestore 方法?

debugging - 是否可以像我们在节点中那样使用 --inspect-brk 启动 firebase 服务?

firebase - 不能使用cypress来使用Firestore本地模拟器来测试应用

typescript - Firebase 函数初始 Hello World 不在 TS 中编译

batch-file - Firebase-CLI |从数据库中删除时跳过 'yes/no' 确认 |批

angular - 引用错误 : IDBIndex is not defined Angular SSR

Firebase 托管 - 函数重写定价

Firebase 停止报告 in_app_purchase 事件

使用 GCP 服务帐户登录 Firebase