WeChat Login
WeChat Login lets Mini Program users sign in with WeChat so orders and profile data stay scoped to that account. It uses the same scan authorization as Build a Mini Program. You do not enter an AppID or AppSecret.
After a successful authorization, DevDeck marks WeChat Login as connected. You can also select Connect under Configure → Connections. If the Mini Program is not authorized yet, DevDeck opens the administrator scan page first.
Before you begin
- A domestic WeChat Mini Program project.
- The Mini Program administrator WeChat account, to scan and grant Mini Program development permission.
How to connect
- Open the project and select Configure → Connections.
- Find WeChat Login and select Connect.
- If authorization is missing, have the administrator scan and grant Mini Program development permission.
- Return to DevDeck and confirm the connection shows as connected.
If you already completed scan authorization from preview or publish, this connection is usually already on. No extra credentials are required.
Testing
Test login on a real WeChat device. H5 or web preview cannot fully verify Taro.login.
Disconnect
Disconnecting WeChat Login on the connection card stops login ticket exchange for that connection. It does not revoke Mini Program authorization and does not remove the AppID that came from authorization.
If the administrator cancels DevDeck’s authorization in WeChat, or disconnects authorization in the publish panel, WeChat Login stops working. Users must authorize again before they can sign in.
To accept payments, configure WeChat Pay separately. Merchant keys still have to be entered by hand; scan authorization does not provide them.