I'm trying to figure out if there's a way to send a verification email from Firebase Auth when an existing auth user is trying to UPDATE their email address. I want to do this before actually calling 'user.updateEmail(newEmail)' so that if they should not be using that email address for whatever reason, it doesn't actually change their email login in Firebase Auth.
It doesn't look like the 'sendEmailVerification' method allows for manually providing an email address to verify.
Ideally, I would like to do something like:
//User provides a newEmailAddress for their account
//Send verification email to the newEmailAddress
//User verifies newEmailAddress
user.updateEmail(newEmailAddress) is executed
Is there a graceful way to do this through Firebase Auth?