tencent cloud

Tencent Cloud Super App as a Service

Setting the User ID

PDF
Focus Mode
Font Size
Last updated: 2026-02-10 19:54:17
API description:The return value is the user account (must be unique). After setting, the data will be stored in isolation based on the account. Typically, you would use uin or openid. This account will also be used in login, user information retrieval, payment, and other Open APIs processes.
/**
* User account, must be unique. After setting, data will be stored in isolation based on the account. Typically, use uin or openid
*/
@Override
public String getAccount() {
return "tmf_test";
}
Note:
When the user logs out, it is necessary to call to terminate the mini program to avoid cross-sharing of sandbox data between different users. Example code:
TmfMiniSDK.stopAllMiniApp(MainActivity.this);



Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback