signup auth flow

so I am building a signup auth flow which goes like this:

screen 1:
name, email, phone
(either phone/email or both)

screen2a:
email otp if email provided

screen2b:
phone otp if phone provided

screen 3:
ask user for password and
confirm password

and then the signup is completed


can this flow be done by better-auth? cause I didn't found anything where you can do otp verification before setting the password and creating the user.

Or do I need to do my otp verification manually?
Was this page helpful?