Skip to content

@mega-yfue/eufy-sdk / SessionStore

Interface: SessionStore<T> ​

A place to persist a session record across runs. Parameterised on the record shape so other Anker lines (e.g. Solix, whose record is not a PersistedSession) can reuse the same file/memory stores rather than re-implementing them. Defaults to PersistedSession for the eufy path.

Type Parameters ​

T ​

T = PersistedSession

Methods ​

clear() ​

ts
clear(): void;

Returns ​

void


load() ​

ts
load(): T | null;

Returns ​

T | null


save() ​

ts
save(s): void;

Parameters ​

s ​

T

Returns ​

void

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.