firebase - firebase 管理员:您的应用程序已使用不受支持的 Google Cloud SDK 或 Google Cloud Shell 的最终用户凭据进行身份验证
问题描述
当我尝试使用
admin.auth().getUser(uid);
我收到这个错误。
"errors":[{"message":"您的应用程序已使用来自 Identitytoolkit.googleapis.com 的 Google Cloud SDK 或 Google Cloud Shell 的最终用户凭据进行身份验证。我们建议在 gcloud 中配置 billing/quota_project 设置或通过 auth/impersonate_service_account 设置使用服务帐户。有关服务帐户以及如何在应用程序中使用它们的更多信息,请参阅https://cloud.google.com/docs/authentication/。","domain":" usageLimits","reason":"accessNotConfigured","extendedHelp":" https://console.developers.google.com "}],"status":"PERMISSION_DENIED"}}"' }
在我使用之前它正在工作
export GOOGLE_APPLICATION_CREDENTIALS='../servicekey.json'"
解决方案
推荐阅读
- python - 如何使用 Poetry 发布到 Azure Devops PyPI 提要?
- json - Json 对象的全局变量更改属性
- javascript - 如何使用 CreateJS / Tween 来影响鼠标移动时的视差 X 和 Y?
- django - 搜索时使用 django 过滤器时出现多项选择时出错
- python - 在 python 请求中处理井号 (#)
- vhdl - 如何定义记录类型的默认值
- macos - 如何减慢 GCD 并发队列的任务?
- c - 计算出现在大矩阵中的小矩阵中的字母数
- python - 在flask中创建一个webapp,在每个请求中生成一个新的html文件,但flask返回前一个
- php - 尽管插件激活成功,但实际上并未创建 Wordpress 自定义数据库表