Create one more table to store various SNS platforms and let your login info table reference this platform table.
For example:
#id | type
1 | kakao
2 | google
3 | facebook
Many social networking services adhere to OAuth protocol when providing access tokens for social login integration in websites.
OAuth 2.0 is the industry-standard protocl for authorization, which specifies several authorization grant types for different use cases. Some common OAuth grant types are: Authorization Code, Client Credentials, Device Code, and Refresh Tokens.
To enable Facebook login, the server side must send requests to Facebook Graph API with a pre-determined format.
Depending on what you specify in the 'fields' part of the query string, the API will return the corresponding values.
For instance,
"https://graph.facebook.com/{your-user-id}
?fields=id,name, email
&access_token={your-user-access-token}"
Here is what I wrote for my website.
To integrate social login for most services, you must first create authorization credentials. In case of Google, click here.
To authenticate with a backend server, check out here. In essence you send the ID token you received from the client side to Google, and Google validates the token's integrity and returns the requested user information.