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
如何使用flatter将多个用户导入firebase auth_Firebase_Flutter_Google Cloud Firestore_Cloud_Crud - Fatal编程技术网

如何使用flatter将多个用户导入firebase auth

如何使用flatter将多个用户导入firebase auth,firebase,flutter,google-cloud-firestore,cloud,crud,Firebase,Flutter,Google Cloud Firestore,Cloud,Crud,我想使用Flatter将30个用户导入firebase,我找不到任何来源,我唯一发现的是:, 但我不知道如何在我的应用程序中实现这一点 我想将用户数据存储在google文档中,并将其转换为“.csv”格式,然后将其从Flatter应用程序上载到firebase“Gmail密码”身份验证中您找到的文档使用firebase CLI。不幸的是,你不能在飞镖/颤振中这样做。但是,如果您想在flatter中实现它,您可以在用户对象列表中循环 例如: List list = [{"emai

我想使用Flatter将30个用户导入firebase,我找不到任何来源,我唯一发现的是:, 但我不知道如何在我的应用程序中实现这一点


我想将用户数据存储在google文档中,并将其转换为“.csv”格式,然后将其从Flatter应用程序上载到firebase“Gmail密码”身份验证中

您找到的文档使用firebase CLI。不幸的是,你不能在飞镖/颤振中这样做。但是,如果您想在flatter中实现它,您可以在用户对象列表中循环

例如:

    List list = [{"email":"user1@example.com","Password":"strong password"},{"email":"use2r@example.com","Password":"strong password"},{"email":"user3@example.com","Password":"strong password"}];

    final _auth = FirebaseAuth.instance;
    list.forEach((element) async{
      await _auth.createUserWithEmailAndPassword(email: element.email, password: element.password);
    });

您可以将用户列表发送到或您的后端服务,并执行类似于您找到的文档中的导入操作。

但我不能使用flutter,但仍然感谢您谢谢。。。。。。