Session Management
By integrating the official login capability, the app can quickly complete the integration of the user system within the minigame and identify user identities.
Description
Call the sud.login() API provided by OpenPaaS to obtain the temporary login credential code, and provide the code parameter to the developer server.
The core information the developer server needs to synchronize with you (as needed)
Parameter Type Description OpenID String The unique identifier of the user under the current minigame, used to identify the user's identity within the minigame UnionID String The unique identifier of the user under the open platform account Custom session integration
- Receive the custom session returned by the developer server;
- Carry this custom session (e.g., in the request header or parameter body) in all subsequent business interactions with the developer server, for identity identification;
- Follow the session expiration rules agreed upon by the developer server (e.g., re-trigger the login flow after expiration).
