Setting up a database for multiple login types

I'm wanting the users of my app to be able to login with their email/password, Facebook, and Twitter.


Setting up a database to compare the email and password makes sense, but what about when they choose to login with Facebook or Twitter? Do you simply compare the email addresses from those accounts or do you set something else up entirely?


Thanks!

Setting up a database for multiple login types
 
 
Q