无法登录到 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 --interactive
和 firebase login --reauth
产生完全相同的结果。
github 问题被忽略了。我真的很想使用云功能特性
最佳答案
解决方案是改用下面的命令:
firebase login --no-localhost
关于登录时 Firebase CLI redirect_uri_mismatch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44844411/