Once you create your login, register and forget password api, add the url to the form. Make sure you have added email for 'Email', phone for 'Phone ' and password for Email as the key in the body. If the api is hit successfully, then the token will be passed through the redirect as ?token=123123 url.
Create your login api as /login , Sign Up as /register and Forget Password as
/forget-password
You can either set your login auth field as email only or phone only. But make sure you've added the respective key for the body.