Connect Websites to WeChat
Prerequisite
Register a WeChat Open Platform account (微信开放平台账号).
Register a Web Application (网站应用).
See Appendix: Create web app on WeChat Open Platform for more details.
Get the information from WeChat Open Platform
Once your mobile app is approved on the platform, you will see the word "✅ 已通过" in the app details page.
Get the
appid
(Client ID)

Get the
appsecret
(Client Secret). It will only be shown once. You need to re-generate if you lose it.

Get the
原始ID
(Account ID) of your WeChat Open Platform account.

Configure Sign in with WeChat in the Authgear portal
Sign in to the Authgear portal.
Select your project.
In the navigation menu, go to Authentication > Social / Enterprise Login.
Click Add Connection.
Select WeChat Web / 网站应用.
Fill in Client ID with the
appid
.Fill in Client Secret with the
appsecret
.Fill in Account ID with the
原始ID
.Save.
Done!
No further changes are needed. The Sign in with WeChat button should be shown in the signup / login page now.
Appendix: Create web app on WeChat Open Platform
After logging into the Open Platform, go to the "网站应用" (Web App) and click "创建网站应用" to create a new web app
The following information are needed:
网站应用名称
Web app name
The app name shown to the end-user when they login
英文名称
Web app name in English
The app name shown to an English end-user when they login
网站应用简介
Web app description
A description for the approver to understand the app
英文简介
Mobile app description in English
Optional field
应用官网
Official website of the web app
The webpage should show the description of the app
网站应用图片
App Icon
A 28x28 and a 108x108 icon
网站信息登记表扫描件
Scanned copy of the Website Registration Form
A signed registration form about the web app and the business nature and company info.
授权回调域
Authorized redirect domain
Domain of your Authgear endpoint for example: *.authgear.cloud
Last updated
Was this helpful?