Skip to content

Class: MemorySessionStore ​

Keeps the session in memory. Useful for tests and short-lived processes.

Implements ​

Constructors ​

Constructor ​

ts
new MemorySessionStore(initial?): MemorySessionStore;

Parameters ​

ParameterTypeDefault value
initial?SessionData | nullnull

Returns ​

MemorySessionStore

Methods ​

load() ​

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

The saved session, or null when nothing was saved.

Returns ​

Promise<SessionData | null>

Implementation of ​

SessionStore.load


save() ​

ts
save(data): Promise<void>;

Keeps the session in memory.

Parameters ​

ParameterType
dataSessionData

Returns ​

Promise<void>

Implementation of ​

SessionStore.save

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