Skip to content

Interface: SessionStore ​

Loads and persists a session. One of the three swappable seams.

Methods ​

load() ​

ts
load(): Promise<SessionData | null>;

The saved session, or null when there is none.

Returns ​

Promise<SessionData | null>


save() ​

ts
save(data): Promise<void>;

Saves the session. Called after every request that changes it.

Parameters ​

ParameterType
dataSessionData

Returns ​

Promise<void>

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.