Need Apply Two Factor Authentication for Upgrade the App via using Email

I Have designed the app using core version. I want to add two factor authentication to upgrade the app. Authenticated code must send to the email. Is there any method to do that? Please help me to do this process.