confirmEmail method

Future<void> confirmEmail(
  1. String oobCode
)

Verifies the users email by completing the process.

To confirm the users email, you need an oobCode. You can obtain that code by using requestEmailConfirmation(). That method will send the user an email that contains said oobCode. In an application you can extract that code from the email to complete the process with this method.

If the request fails, including because an invalid code was passed to the method, an AuthError will be thrown.

Implementation

Future<void> confirmEmail(String oobCode) async =>
    api.confirmEmail(ConfirmEmailRequest(oobCode: oobCode));