Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 351 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 351 Bytes

WebStorageCookieStore

A cookie store for the tough-cookie library based on Web Storage APIs (localStorage and sessionStorage)

Usage

import { CookieJar } from 'tough-cookie';
import WebStorageCookieStore from 'tough-cookie-web-storage-store';

let store = new WebStorageCookieStore(localStorage);
let cookieJar = new CookieJar(store);