@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