Skip to content

Use social login authentication

Social login refers to the process of users using social platform identity authentication information to authenticate and log in to third-party applications or websites. For example, people often use personal WeChat, QQ, Weibo and other social accounts to log in to Didi, NetEase Cloud Music, etc. Social login not only helps to simplify the user's login experience on third-party platforms, but also provides a simpler and more convenient way for users to create new accounts on third-party platforms. Whether for ordinary users or enterprises, social login has incomparable advantages.

Social login list

GenAuth currently supports nearly 20 social logins at home and abroad, such as WeChat, GitHub, Sign in with Apple, Alipay, etc. The following is a complete list:

Social Login MethodUsage ScenarioDocumentation
PC WeChat QR CodePC Website
WeChat MobileMobile APP
WeChat Web AuthorizationWeChat Web Page
WeChat Official Account ScanningPC Website
WeChat Mini ProgramWeChat Mini ProgramDocumentation
WeChat PC Mini Program QR CodePC Website
WeChat Mini Program App LaunchMobile APP
Tencent QQPC Website
Tencent QQ MobileMobile APP
Sina WeiboPC Website
Sina Weibo MobileMobile APP
GitHubPC Website
GitHub MobileMobile APP
FacebookPC Website
Facebook MobileMobile APP
TwitterPC Website
Twitter MobileMobile APP
Google WebPC Website
Google MobileMobile APP
Apple WebPC Website
Apple MobileMobile APP
Alipay WebPC Website
Alipay MobileMobile APP
SlackPC Website
Slack MobileMobile APP
GiteePC Website
GitLabPC Website
GitLab MobileMobile APP
BaiduPC Website
Baidu MobileMobile APP
LinkedInPC Website
LinkedIn MobileMobile APP
NetEase Yidun (One-click Login)Mobile APP
QingCloudPC Website
InstagramPC Website
Douyin MobileMobile APP
Douyin Mini ProgramMobile APPDocumentation
Kuaishou MobileMobile APP
Xiaomi MobileMobile APP
Line MobileMobile APP

Custom social login

GenAuth provides the ability to access custom OAuth2.0 identity providers. If you need to connect to a social login identity source that is not built into GenAuth, you can .

WeChat solution

GenAuth has a complete solution for the WeChat ecosystem. You can view the product introduction and read the Guide to connecting to the WeChat account system.

Choose the appropriate development access method

GenAuth Social login supports four access methods: Using JavaScript SDK, Using embedded login components, Using hosted login pages and Manually calling social login interfaces. Each different access method has its own advantages and disadvantages. You can choose the appropriate method according to your business needs.

Pros and cons comparison

The following is a comparison of the pros and cons of various methods:

Access methodAdvantagesDisadvantagesRecommended
Use JavaScript SDK Easy access, only a few lines of code. Highest degree of customization. Yes
Use embedded login componentEasy access, only a few lines of code. You can integrate this component into your application. Relatively high degree of customizationYes
Use hosted login pageSimple operation and maintenance, which is handled by GenAuth. Each user pool has an independent second-level domain name.If you need to embed it in your application, you need to use the pop-up mode to log in, that is: after clicking the login button, a window will pop up with the login page hosted by GenAuth, or redirect the browser to the login page hosted by GenAuth.Yes
Manually call the social login interfaceYou need to manually parse the user information from the URL. Access is relatively complicated and troublesome.Not recommended

Detailed access method

The following is the detailed access method for each method:

social-login

Code snippet: social-login

Agent infrastructure for identity, memory, and web action.