Authenticator with emailed 2fa code?

Hi Folks,

I’ve set up a custom authenticator that auths to our local database, but I need to add a 2nd page to the authentication flow after the username and password for putting in a two factor code that gets emailed to the user after they submit their username and password.

Does anyone know of an example of how to do this or could point me in the right direction on how to approach this?