Skip to main content

WeChat Login

Add WeChat sign-in to your Android or iOS app using the credentials assigned by NextAppMarket. The mobile SDK obtains the customer's authorization; your backend completes authentication and creates your application's session.

NextAppMarket provides your credentials. Start with the assigned application configuration, then follow the platform guide. The account-registration steps in generic provider tutorials are handled through your NextAppMarket onboarding.

How sign-in works​

  1. Your backend starts a short-lived login attempt and issues a random state value.
  2. Your app opens WeChat with the assigned AppID and authorization request.
  3. WeChat returns a result, a matching state, and an authorization code after approval.
  4. Your backend validates the attempt and exchanges the code using its AppSecret.
  5. Your backend finds or creates the appropriate local account and issues your application's session.

The authorization code, WeChat access token, and your own session token have different roles. Keep the exchange and account mapping on the server. The app signs in to your service using the session your backend creates.

Start your integration​

TaskGuide
Check the assigned values and application identityGet your credentials
Add WeChat sign-in on AndroidAndroid integration
Add WeChat sign-in on iOSiOS integration
Complete login and link accountsServer-side authentication
Investigate a failed or incomplete loginTroubleshooting

These guides cover native mobile login. Website QR-code login, Official Account authorization, and Mini Program login use different application types and flows; arrange the appropriate configuration with NextAppMarket if your product needs one of those flows.

Define the result before implementing it​

A successful integration signs the customer into the correct local account, handles a cancelled request without an error loop, and works in the signed build you distribute. Test those outcomes alongside the happy path.

Provider reference: WeChat mobile application login guide. The guide is maintained by WeChat; the credential handoff for this integration is managed by NextAppMarket.