tough-cookie.cookiejar.serialize.md

July 9, 2025 ยท View on GitHub

Home > tough-cookie > CookieJar > serialize

CookieJar.serialize() method

Serialize the CookieJar if the underlying store supports .getAllCookies.

Signature:

serialize(callback: Callback<SerializedCookieJar>): void;

Parameters

Parameter

Type

Description

callback

Callback<SerializedCookieJar>

A function to call after the CookieJar has been serialized

Returns:

void

Contents

  1. 1CookieJar.serialize() method
  2. 2Parameters