Go to WeChat Open Platform
Create a website application and get the AppID and AppSecret you need.
What this capability does
- Adds a WeChat QR sign-in entry to your desktop site.
- Keeps your existing login methods and adds WeChat alongside them.
- Creates a login page matching your project’s style if the site has none.
- Adds the groundwork WeChat login needs if the project has no login capability yet.
- Sends users on to the page they were headed for, or to your project’s existing post-login page.
This capability covers desktop sign-in for a WeChat Open Platform website application. It is not the same as WeChat Official Account web authorization, and it does not apply to WeChat mini program login.
What users see
On your login page, visitors pick WeChat login, scan the code with WeChat on their phone, confirm, and land back on your site signed in. The button, QR area, colors, and layout follow your project’s existing design rather than a forced template. Email, phone, and other existing login methods keep working.What to prepare
Configure WeChat Open Platform
Create a website application
- Sign in to WeChat Open Platform.
- Create a website application, fill in the details, and submit it for review.
- After approval, get the AppID and AppSecret from the application’s development info.
Set the authorized callback domain
Go to Management center → Website application → Development config → Development info → Domain info and enter the authorized callback domain shown on the superun config card.
Enter the domain only — no protocol and no path. For a project at https://example.com/login, enter:
About the business domain
Basic WeChat QR login does not need a business domain. That setting on WeChat Open Platform mainly covers launching and sharing PC mini programs, which does not affect the QR login described here. Only configure an HTTPS business domain — and deploy the matchingMP_verify_xxx.txt verification file — if you use those extra capabilities.
Enable it in superun
- Select WeChat QR login in your project conversation.
- Check the authorized callback domain on the config card and enter it on WeChat Open Platform.
- Enter the AppID and AppSecret of the same website application on the config card.
- After enabling, say where in the project you want the WeChat login entry to appear.
- Once the project is updated and published, run one real scan with a WeChat account to verify.
How it adapts to your project
This capability does not automatically add email signup, phone signup, password recovery, account linking, or account merging. Ask for those separately in your project.
Security notes
- The AppSecret is only used server-side to talk to WeChat; it is never written into browser pages.
- WeChat login does not auto-merge existing accounts based on nickname, avatar, or phone number.
- Disabling the plugin does not remove WeChat login already live in your project; removing the live entry takes a separate change and republish.
- After moving the project to a new domain, update the authorized callback domain on WeChat Open Platform.
Verify the result
After integration, confirm all of the following:- The login page shows the WeChat login entry.
- WeChat on a phone can scan the code and confirm.
- Authorization completes and the user reaches the site.
- Existing login methods still work.
- The login page matches the project’s overall design.
- The AppSecret does not appear in frontend pages or the code repository.
redirect_uri parameter errors, or sign-in fails after scanning, see WeChat QR login troubleshooting.

