Social Auth WeChat allows users to register and login to your Drupal site with their WeChat account. It is based on Social Auth and Social API projects

This module adds a path user/login/wechat which redirects the user to WeChat Accounts for authentication.

After WeChat API has returned the user to your site, the module compares the user ID provided by WeChat. If your site already has an account with the same user ID, user is logged in. If not, a new user account is created.

Login process can be initiated from the "WeChat" button in the Social Auth block. Alternatively, site builders can place (and theme) a link to user/login/wechat wherever on the site.


This module also require additional PHP libraries. To use this module, you need to:

1. Add the repository

composer config repositories.drupal composer

2. Download Social Auth WeChat

composer require "drupal/social_auth_wechat:2.x-dev"

Use composer update drupal/social_auth_wechat --with-dependencies to update Social Auth WeChat to a new release.

See Using Composer in a Drupal project for more information.

Supporting organizations: 

Project information