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
- Your backend starts a short-lived login attempt and issues a random
statevalue. - Your app opens WeChat with the assigned AppID and authorization request.
- WeChat returns a result, a matching
state, and an authorizationcodeafter approval. - Your backend validates the attempt and exchanges the code using its AppSecret.
- 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
| Task | Guide |
|---|---|
| Check the assigned values and application identity | Get your credentials |
| Add WeChat sign-in on Android | Android integration |
| Add WeChat sign-in on iOS | iOS integration |
| Complete login and link accounts | Server-side authentication |
| Investigate a failed or incomplete login | Troubleshooting |
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.