小编Jay*_*iya的帖子

如何使用firebase检查密码重置链接是否已发送

这是我的代码

重置链接被发送到目标电子邮件,没有错误。

我的问题是

我只想确认链接是否已发送

await _auth.sendPasswordResetEmail(email: email).then((val){

      }).whenComplete(() {
        Navigator.pop(context, true);
        if (isLoading) {
          setState(() {
            isLoading = false;
          });
        }
      }).catchError((error) {
        print("ERRORRRRRRRR=> $error");
      }); 


await _auth.sendPasswordResetEmail(email: email).then((val){

      }).catchError((error) {
        print("ERRORRRRRRRR=> $error");
      }); 
Run Code Online (Sandbox Code Playgroud)

firebase firebase-authentication flutter

1
推荐指数
1
解决办法
874
查看次数