Skip to content

@mega-yfue/eufy-sdk / tuya / buildUidTokenCreateAction

Function: buildUidTokenCreateAction()

ts
function buildUidTokenCreateAction(countryCode, uid): TuyaAction;

Older Tuya API path that auto-creates a shadow account if it does not yet exist. Used only by tuya-login-diag.mjs as a last-resort re-provisioning probe — not part of the normal login flow (smartlife.m.user.username.token.get is step 1).

Parameters

countryCode

string

uid

string

Returns

TuyaAction

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.