Skip to content

@mega-yfue/eufy-sdk / LoginStatus

Variable: LoginStatus

ts
const LoginStatus: object;

The status discriminant of a LoginResult. Compare result.status against these constants (e.g. if (r.status === LoginStatus.Captcha)).

Type Declaration

Captcha

ts
readonly Captcha: "captcha" = "captcha";

Solve result.image and call solveCaptcha(answer).

Ok

ts
readonly Ok: "ok" = "ok";

Authenticated — result.session carries the token.

TwoFactor

ts
readonly TwoFactor: "2fa" = "2fa";

A code was sent; call submitVerifyCode(code).

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.