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.
@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);