火力基地:CONFIGURATION_NOT_FOUND

et1*_*00_ 5 authentication dart firebase flutter

我使用 firebase 为我的 flutter 应用程序进行身份验证,并且在创建用户时遇到错误,具有该功能,createUserWithEmailAndPassword(email: mail, password: password);signInWithEmailAndPassword(email: mail, password: password);它不起作用,当我测试它时,它标记为: [firebase_auth/internal-error]{"error":{"code":400,"message":"CONFIGURATION_NOT_FOUND","errors":[{"message":"CONFIGURATION_NOT_FOUND","domain":"global","reason":"invalid"}]}}

在我的火力基地上

如果您想要我的代码,请转到此处:我的代码 如果您可以帮助我,我愿意接受所有解决方案

rud*_*ude 25

我也经历过同样的错误。对我来说,问题只是因为 Firebase Auth 在使用前没有设置。

  1. 转到 Firebase 控制台 > 身份验证
  2. 启用一种或多种身份验证方法
  3. 再次尝试运行应用程序


mik*_*oss -1

在调用 firebase 的服务之前,您需要使用应用程序配置初始化您的应用程序:)