How to change password using Firebase in Flutter

前端 未结 4 1874
一向
一向 2021-01-24 06:46

I want to change current user password using Firebase in Flutter. Can any one help me on how to implement change password method?

4条回答
  •  醉话见心
    2021-01-24 07:13

    This should work according to the latest version of firebase:
    final FirebaseAuth firebaseAuth = FirebaseAuth.instance;
    User currentUser = firebaseAuth.currentUser;
    currentUser.updatePassword("newpassword").then((){}).catchError((err){})

提交回复
热议问题