I'm including Google and Facebook OAuth2.0 to my site. I got it working so it pre-populates my registration form with first name, last name and email (password must be entered manualy). Now i want to enable that users can login/register without entering password. As i mentioned i can get email address with no problems from OAuth but i dont know what to use as password because i cannot have an empty password field in my database (then you could enter users email with no password and you could login).
In my database i'm checking for email and password fields (simple login).
So how do i register my users with OAuth (what to enter into password field), so that i can login them later just by clicking on OAuth icon?
Is there any key that is user specific and is not public?