Skip to content

@mega-yfue/eufy-sdk / FileSessionStore

Class: FileSessionStore<T> ​

JSON-file store, e.g. new FileSessionStore("./.eufy-session.json").

Type Parameters ​

T ​

T = PersistedSession

Implements ​

Constructors ​

Constructor ​

ts
new FileSessionStore<T>(path): FileSessionStore<T>;

Parameters ​

path ​

string

Returns ​

FileSessionStore<T>

Methods ​

clear() ​

ts
clear(): void;

Returns ​

void

Implementation of ​

SessionStore.clear


load() ​

ts
load(): T | null;

Returns ​

T | null

Implementation of ​

SessionStore.load


save() ​

ts
save(s): void;

Parameters ​

s ​

T

Returns ​

void

Implementation of ​

SessionStore.save

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.