How to change password using Firebase in Flutter

flutter login and registration using firebase
flutter firebase
flutter firebase auth tutorial
flutter firebase phone auth
forgot password screen flutter
firebase auth forgot password
flutter firebase get current user
flutter firebase sign in with email and password

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

I know this is a late post, but now it's possible to change the password of the logged-in user. Make sure to notify the user to log in again since this is a sensitive operation.

void _changePassword(String password) async{
   //Create an instance of the current user. 
    FirebaseUser user = await FirebaseAuth.instance.currentUser();

    //Pass in the password to updatePassword.
      print("Succesfull changed password");
      print("Password can't be changed" + error.toString());
      //This might happen, when the wrong password is in, the user isn't found, or if the user hasn't logged in recently.

(Ep 21) Flutter: Password Reset Using Firebase Auth, The concept of password reset is self-explanatory; users often forget (assuming you are using Firebase as the back-end authentication). Steps. Future < FirebaseUser > signUp(email, password) async {. try {. FirebaseUser user = await auth.createUserWithEmailAndPassword(email: email, password: password); assert(user != null ); assert(await user.getIdToken() != null ); return user; } catch (e) {. handleError(e); return null ;

As @Gunter mentioned that the feature is currently still unavailable, you can make use of the firebase REST API way of changing the password for the time being.

import 'package:http/http.dart' as http;
import 'dart:convert';
import 'dart:async';

Future<Null> changePassword(String newPassword) async {
  const String API_KEY = 'YOUR_API_KEY';
  final String changePasswordUrl =

      final String idToken = await user.getIdToken(); // where user is FirebaseUser user

    final Map<String, dynamic> payload = {
      'email': idToken,
      'password': newPassword,
      'returnSecureToken': true

    body: json.encode(payload), 
    headers: {'Content-Type': 'application/json'},  

You can get the idToken by using the getIdToken() method on the FirebaseUser object

You can get the firebase api key under the project setting in your console

Flutter: Email verification and password reset - Levi Matheri, You can also create new password-authenticated users from the The recommended way to get the current user is by setting a listener on the  Today we will be looking how to build our first flutter application with Firebase authentication and realtime database. This application allows user to signup or login and perform todo items CRUD with Firebase. On this post, we are going to solely focus on the user signup and login part.

This is currently not supported.

When this pull request is merged the Flutter firebase_auth package will support that.

Manage Users in Firebase, You can use Firebase Authentication to let your users authenticate with Firebase using their email addresses and passwords, and to manage  Flutter & Firebase. In this article, I will be explaining how you can use FirebaseAuth to authenticate users of your app, using the Email and Password method, and store their information in the

Authenticate with Firebase using Password-Based Accounts using , Using Firebase's Cloud Firestore in Flutter Since we're enabling only this provider, we can signup and login with an email and password only. authentication, we'll need to change the flow the user takes through the app. For now, enable Email/Password so we can begin using it to register an account. Since we’re enabling only this provider, we can signup and login with an email and password only. Under templates, we find templates for common emails. If you wish, you can change a few of the details, like the project name and the name of the sender.

Firebase User Authentication in Flutter, If the user wants, they can change the email, password even removes the user. Objectives. ezgif-2-1b1f19d4c59d Objectives of this project are  Add Firebase to your Flutter app plat_ios plat_android. Step 1 : Create a Firebase project. Before you can add Firebase to your Flutter app, you need to create a Firebase project to connect to your app Step 2 : Register your app with Firebase. Step 3 : Add a Firebase configuration file. Step 4 :

Firebase Authentication with Flutter – Simple Activity, I'm going to interact with firebase to authenticate the user and do some more If the user wants, they can change the email, password even  EDIT: I worked around the ability to not be able to update a password by using Firebase Cloud Functions. There could be a flow to reset a password using a flow outside of Flutter. I do not think this is a long-term solution, but it is a solution for now.