Skip to content

Documentation / @imvu/rest / CookieStorage

Interface: CookieStorage ​

Defined in: packages/rest/src/cookies.ts:4

Where a REST client persists its cookie jar (and so its session) between runs.

Methods ​

load() ​

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

Defined in: packages/rest/src/cookies.ts:6

Return the previously saved jar as JSON, or null when nothing is saved.

Returns ​

Promise<string | null>


save() ​

ts
save(serialized): Promise<void>;

Defined in: packages/rest/src/cookies.ts:8

Persist the jar, serialized as JSON.

Parameters ​

ParameterType
serializedstring

Returns ​

Promise<void>

Released under the MIT License.