Social Media Login | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Social Media Login

I'm making a web app that allows users to login with Google and Facebook. I currently use the email address as the unique identifier for an account. I've been doing some research on this and I'm curious as to whether or not that's a good idea. Some people have said this is not good because people can have different emails for both platforms. What matters to me is that someone is not able to spoof another's email. To my knowledge, both Google and Facebook require email validation, such that if I were to have an email address, [email protected], another person would not be able to create an account on Facebook with that email. That would make the email unique. Does anyone see any problems with this approach?

25th Sep 2017, 12:54 PM
Division by Zero
1 Answer
+ 1
its a nice idea. but the bad side would be limiting your app. like they told you, what if I change my email address?? that's a limit right there. why not apply "Username" as the Unique ID. this is my opinion
19th Nov 2017, 6:32 PM
Anthony Udeagbala
Anthony Udeagbala - avatar