Skip to content

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

Function: buildSignPreimage()

ts
function buildSignPreimage(params): string;

Build the exact sign preimage from a request param map. Keeps only allowlisted keys with a non-empty value, sorts them ascending, and joins key=value pairs with ||. postData is folded via swapMd5 before joining.

Parameters

params

Readonly<Record<string, string | undefined>>

Returns

string

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.