I imagine you would need to implement a sign-in with Twitter flow on your website, and then use the verify_credentials endpoint to confirm their user ID. How you do all of this is really up to you, I’m just pointing you to the resources that describe how to get the information you’re looking for from the Twitter API.