requestEmailConfirmation method

Future requestEmailConfirmation({
  1. String? locale,
})

Sends a verification email at the users email.

You can use this method, if getDetails() reveals that the users email has not been verified yet. This method will cause the firebase servers to send a verification email with a verification code. That code must be then sent back to firebase via confirmEmail() to complete the process.

The language of the email is determined by locale. If not specified, the accounts FirebaseAccount.locale will be used.

If the request fails, an AuthException will be thrown.

Implementation

Future requestEmailConfirmation({
  String? locale,
}) async =>
    api.sendOobCode(
      OobCodeRequest.verifyEmail(
        idToken: _idToken,
      ),
      locale ?? this.locale,
    );