resetPassword method

void resetPassword(
  1. String email, [
  2. String? redirect
])

Reset the password for the given email TODO: Not sure if this is working correctly email email to reset

Implementation

void resetPassword(String email, [String? redirect]) async {
  try {
    await client.auth.resetPasswordForEmail(email, redirectTo: redirect);
  } catch (error) {
    logFatal('Problems resetting password: $error');
  }
}