Basic landing page that takes in their username + password, then forward them through axios or curl to the Twitter api.
If it requires 2fa, just prompt them a 2nd box to enter their 2fa key and foward that to Twitter.
Essentially your just taking the users input on your own webpage and forwarding it to Twitter's api/website.