requestPasswordReset method
Sends a password reset email to a user.
This tells firebase to generate a password reset mail and send it to
email
. The language of that mail is determined by locale
, if
specified, FirebaseAuth.locale otherwise. If the request fails, an
AuthError
is thrown.
Implementation
Future requestPasswordReset(
String email, {
String? locale,
}) async =>
api.sendOobCode(
OobCodeRequest.passwordReset(email: email),
locale ?? this.locale,
);