Hi,
here I need a logic. I'm building a shopping cart, where there is an user table to store user info. Order table is joined with user table to get info of user by userid. Users are registering into my site by email, pwd and other infos and the data stored to usertable.
Now, there is a requirement to authenticate user by google account, so that user can log in via google account. Means there will not be any registration required to our site. User will come, login via google, and shop.
Now my question is, should i store users data to my user table when they first time login by google. If I don't do that, then after their order how can I do the joining with usertable?
So, I just need the correct way how practical applications do this.
What I have tried:
I need the logic here, not any code.