confirmPasswordReset method

Future<void> confirmPasswordReset(
  1. {required String code,
  2. required String newPassword}
)

Completes the password reset process, given a confirmation code and new password.

A FirebaseAuthException maybe thrown with the following error code:

  • expired-action-code:
  • Thrown if the action code has expired.
  • invalid-action-code:
  • Thrown if the action code is invalid. This can happen if the code is malformed or has already been used.
  • user-disabled:
  • Thrown if the user corresponding to the given action code has been disabled.
  • user-not-found:
  • Thrown if there is no user corresponding to the action code. This may have happened if the user was deleted between when the action code was issued and when this method was called.
  • weak-password:
  • Thrown if the new password is not strong enough.

Implementation

Future<void> confirmPasswordReset({
  required String code,
  required String newPassword,
}) async {
  await _delegate.confirmPasswordReset(code, newPassword);
}