Verify Before Update Email

Use the verifyBeforeUpdateEmail method to send a verification email to the user before updating their email address.

Method

bool isValidEmail = await FirebaseApp.firebaseAuth?.verifyBeforeUpdateEmail(newEmail);

Parameters

  • newEmail (String): The new email address of the user to be verified.

Return

  • void: This method does not return a value.

This method sends a verification email to the user, ensuring the email address is verified before allowing an update.

Last updated