tencent cloud

Setting the User ID
Last updated:2026-02-10 19:54:17
Setting the User ID
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);


Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback