Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
颤振Firebase验证异常的错误代码是什么?_Firebase_Flutter_Firebase Authentication - Fatal编程技术网

颤振Firebase验证异常的错误代码是什么?

颤振Firebase验证异常的错误代码是什么?,firebase,flutter,firebase-authentication,Firebase,Flutter,Firebase Authentication,我试过阅读这个帖子,也试过搜索,但我只能在这里找到AdminSDK身份验证错误 这些链接中的错误代码与Firebase Auth for Flatter应用程序的错误代码不同 我是说,我需要这里的错误代码 Future<void> signInUsingEmail({required String email, required String password}) async { try { await _auth.signInWithEmailAndPasswo

我试过阅读这个帖子,也试过搜索,但我只能在这里找到AdminSDK身份验证错误

这些链接中的错误代码与Firebase Auth for Flatter应用程序的错误代码不同

我是说,我需要这里的错误代码

Future<void> signInUsingEmail({required String email, required String password}) async {
    try {
      await _auth.signInWithEmailAndPassword(email: email, password: password);
    } on FirebaseAuthException catch (error) {

      // I need the error.code in here

      print(error.code);
      

    }
Future SigningUsingEmail({必需的字符串电子邮件,必需的字符串密码})异步{
试一试{
等待使用email和password(电子邮件:电子邮件,密码:password)进行身份验证登录;
}关于FirebaseAuthException捕获(错误){
//我需要这里的错误代码
打印(错误代码);
}
我能知道所有可用的错误代码吗?这样我就可以用我自己的语言编写我自己的错误消息。至于现在,我只能在下面捕捉到这些错误代码

  • “请求太多”
  • “密码错误”
  • “网络请求失败”

还有什么?

对于使用Email和Password的Flatter方法的
登录,您将在
firebase\u auth
软件包中找到错误代码


它们实际上与JS SDK相同:

对于使用Email和Password的
SigninWithFlatter方法,您将在
firebase\u auth
包中找到错误代码

它们实际上与JS SDK相同: