Custom Auth0 Flow with Pre and Post Registration

Hello,

Here is my use case:

  1. User clicks on Sign-Up on our App with his/her email address
  2. We would like to send a 6 digit PIN Code the given Address thereby validating the email address and verifying the same as Pre-User Registration Action
  3. Once Verified, would like to Redirect User to Create new Password (Local/database user account).
  4. Once password updation is successful, would like to call a Post User to call our Rest API before redirecting to the Callback URL.

I understand passwordless flow does support sending of Code. However I could not figure out how to redirect User to creating a password here. We want to use the code verification as a means to validate user’s Email ID not as a password.

Thanks