verifyBeforeUpdateEmail method

Future<void> verifyBeforeUpdateEmail(
  1. String newEmail, [
  2. ActionCodeSettings? actionCodeSettings
])

Sends a verification email to a new email address. The user's email will be updated to the new one after being verified.

If you have a custom email action handler, you can complete the verification process by calling applyActionCode.

A FirebaseAuthException maybe thrown with the following error code:

  • missing-android-pkg-name:
  • An Android package name must be provided if the Android app is required to be installed.
  • missing-continue-uri:
  • A continue URL must be provided in the request.
  • missing-ios-bundle-id:
  • An iOS bundle ID must be provided if an App Store ID is provided.
  • invalid-continue-uri:
  • The continue URL provided in the request is invalid.
  • unauthorized-continue-uri:
  • The domain of the continue URL is not whitelisted. Whitelist the domain in the Firebase console.

Implementation

Future<void> verifyBeforeUpdateEmail(
  String newEmail, [
  ActionCodeSettings? actionCodeSettings,
]) async {
  await _delegate.verifyBeforeUpdateEmail(newEmail, actionCodeSettings);
}