Skip to content

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

Function: buildPasswordLoginRegAction() ​

ts
function buildPasswordLoginRegAction(
   countryCode, 
   uid, 
   passwd, 
   token
): TuyaAction;

LOGIN step 2: uid password login + auto-register. Wire-confirmed from the eufy Security app: wire action smartlife.m.user.uid.password.login.reg, v=1.0. passwd = hex of RSA-PKCS1-encrypt(MD5hex(aesPassword)). options is the JSON string {"group": 1}, as the app sends it. On success returns { sid, uid }.

Parameters ​

countryCode ​

string

uid ​

string

passwd ​

string

token ​

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.