Skip to content

@mega-yfue/eufy-sdk / FileSessionStore

Class: FileSessionStore

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

Implements

Constructors

Constructor

ts
new FileSessionStore(path): FileSessionStore;

Parameters

path

string

Returns

FileSessionStore

Methods

clear()

ts
clear(): void;

Returns

void

Implementation of

SessionStore.clear


load()

ts
load(): PersistedSession | null;

Returns

PersistedSession | null

Implementation of

SessionStore.load


save()

ts
save(s): void;

Parameters

s

PersistedSession

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.