Flutterfire: Error: The method 'confirmPasswordReset' isn't defined for the class 'FirebaseAuthPlatform'.

Created on 2 Feb 2020  Â·  9Comments  Â·  Source: FirebaseExtended/flutterfire

Compiler message:
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.15.4/lib/src/firebase_auth.dart:340:10: Error: The method 'confirmPasswordReset' isn't defined for the class 'FirebaseAuthPlatform'.

  • 'FirebaseAuthPlatform' is from 'package:firebase_auth_platform_interface/firebase_auth_platform_interface.dart' ('/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-1.1.2/lib/firebase_auth_platform_interface.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'confirmPasswordReset'.
    .confirmPasswordReset(app.name, oobCode, newPassword);
    ^^^^^^^^^^^^^^^^^^^^
    Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
    build failed.

FAILURE: Build failed with an exception.

Most helpful comment

it work's finally run this commands in terminal
1) flutter pub upgrade
2) flutter run

All 9 comments

I'm getting the same issue on version 0.15.4

I also got this issue and then I upgraded to the latest version of flutter stable channel to fix it.

I'm having the same issue. On stable channel Dart 2.7, Flutter: 1.12.13, upgraded to beta channel also yield this same issue.

I'm able to compile on Android if commented // confirmPasswordReset method on FirebaseAuth. But on IOS it wont compile due to pod problem, not sure my fault or related, I'll dive it again.

Future confirmPasswordReset(String oobCode, String newPassword) {
return FirebaseAuthPlatform.instance.confirmPasswordReset(app.name, oobCode, newPassword);
}

Seems like this method did not get called in the FirebaseAuthPlatform?

I have the same problem :(
I use Flutter 1.12.13 + hotfix.7 • stable channel and Dart 2.7.0.
At the moment, the only solution I found was to downgrade to firebase_auth: 0.15.3+1

Same here

Same firebase_auth: ^0.15.4

Solved mine
#1885

it work's finally run this commands in terminal
1) flutter pub upgrade
2) flutter run

Was this page helpful?
0 / 5 - 0 ratings