validatePasswordReset method

Future validatePasswordReset(
  1. String oobCode
)

Checks, if a password reset code is valid.

When using requestPasswordReset() to send a mail to the user, that mail contains an oobCode. You can use this method to verify if the code is a valid code, before allowing the user to enter a new password.

If the check succeeds, the future simply resolves without a value. If it fails instead, an AuthException is thrown.

Implementation

Future validatePasswordReset(String oobCode) async =>
    api.resetPassword(PasswordResetRequest.verify(oobCode: oobCode));