【问题标题】:firebase auth asking for authorization code during installationfirebase auth 在安装期间要求授权码
【发布时间】:2022-11-08 16:17:26
【问题描述】:

我正在尝试安装 firebase 身份验证,它要求在 cli 中提供授权码。无论我如何检查,我都没有看到任何授权代码(我在 firebaseConfig 中提供了 web api 密钥等)我是否遗漏了一些明显的东西?这是我在 cli 中的步骤:

ng add @angular/fire
Skipping installation: Package already installed
UPDATE package.json (1493 bytes)
? What features would you like to setup? Authentication
Using firebase-tools version 10.2.0
? Allow Firebase to collect CLI usage and error reporting information? No
? Enter authorization code:

【问题讨论】:

    标签: angular firebase


    【解决方案1】:

    我有同样的问题。我按照以下步骤解决了它:

    1/ 首先,您必须连接您的 Firebase 帐户 > firebase login

    2/接下来,检查连接是否正常(你需要首先在firebase上创建你的项目才能在结果中看到它) > firebase projects:list

    3/然后,你需要初始化firebase > firebase init

    4/ 现在您可以添加以下命令 > ng add @angular/fire

    【讨论】:

    • 谢谢。在命令 firebase init 之后列出的功能。哪一个包含身份验证服务?
    • 验证服务功能列在ng add @angular/fire 命令中,问题是:“您要设置哪些功能?”
    • 我想通了。傻我
    • 谢谢,对我来说很好。但我不需要执行firebase init 命令。这一步是可以避免的
    【解决方案2】:

    如果您在他们发送的验证邮件中验证您的 Firebase 帐户和相关项目,则不应出现此消息。 如果仍然存在,请尝试以下命令:

    firebase 登录:ci

    并在弹出的窗口中授权访问您的项目。祝你好运!

    【讨论】:

      猜你喜欢
      • 2022-10-09
      • 1970-01-01
      • 2023-02-11
      • 2014-07-26
      • 2014-08-23
      • 2020-11-12
      • 1970-01-01
      • 2021-11-17
      • 2012-03-17
      相关资源
      最近更新 更多