oauth 2.0 - Sign In with Google/Facebook/Twitter -


i creating web application on allowing user sign in using facebook/google/twitter.

once user sign in store respective ids facebook/google/twitter database table.

now database table using same field social_id store ids three(facebook/google/twitter).

today had thought if there case of same/duplicate id these providers.

so if experienced in using 3 user sign in.

could please share info.

regards, raj

try query:

$sql= "insert social_users (social_id, data)                 values ('$social_id', '$data')                 on duplicate key update id = id"; 

the "social_id" field in database must unique.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -