resetPassword method

Future resetPassword(
  1. String oobCode,
  2. String newPassword
)

Completes a password reset by setting a new password.

When using requestPasswordReset() to send a mail to the user, that mail contains an oobCode. You can use this method to complete the process and reset the users password to newPassword.

If this method succeeds, the user must from now on use newPassword when signing in via signInWithPassword(). If it fails, an AuthException is thrown.

Implementation

Future resetPassword(String oobCode, String newPassword) async =>
    api.resetPassword(
      PasswordResetRequest.confirm(
        oobCode: oobCode,
        newPassword: newPassword,
      ),
    );