In reset password policy, in first screen user can enter email address and can verify it using the code received over the email. But I want to split this screen such that user will enter email address only in first screen and after pressing continue button user receives verification code in email. In second screen user can enter verification code and on pressing continue button the code should be verified. If verification success, user will be taken to next screen and can enter new password else give error and user can regenerate a new code for verification.
flow :
screen 1(enter email and press continue. in background generate verification code and send to email) -> screen 2(enter verification code and press continue. in background verify the code, if success go to next screen else give error) -> screen 3(enter new password and continue with rest of the flow as it is) Is it possible to achive it without using any API calls.