Class: FileSessionStore
Persists the session as a JSON file on disk.
Implements
Constructors
Constructor
ts
new FileSessionStore(path): FileSessionStore;Parameters
| Parameter | Type |
|---|---|
path | string |
Returns
FileSessionStore
Methods
load()
ts
load(): Promise<SessionData | null>;The saved session, or null when the file does not exist yet.
Returns
Promise<SessionData | null>
Implementation of
save()
ts
save(data): Promise<void>;Writes the session to the file.
Parameters
| Parameter | Type |
|---|---|
data | SessionData |
Returns
Promise<void>