We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f2b0c0 commit bdfc3c0Copy full SHA for bdfc3c0
src/core/state.ts
@@ -79,6 +79,9 @@ export class State {
79
public async deserializeCookieJar(cookies: string) {
80
this.cookieJar['_jar'] = await Bluebird.fromCallback(cb => CookieJar.deserialize(cookies, this.cookieStore, cb));
81
}
82
+ public async serializeCookieJar(): Promise<string> {
83
+ return Bluebird.fromCallback(cb => this.cookieJar['_jar'].serialize(cb));
84
+ }
85
86
public generateDevice(seed: string): void {
87
const chance = new Chance(seed);
0 commit comments