Attach a cookie jar to the request pipeline. Automatically reads cookies for the request URL and stores Set-Cookie from responses.
import { cookieJar, withCookies } from 'kinetex/plugins';const jar = cookieJar();const api = create().use(withCookies(jar)); Copy
import { cookieJar, withCookies } from 'kinetex/plugins';const jar = cookieJar();const api = create().use(withCookies(jar));
Attach a cookie jar to the request pipeline. Automatically reads cookies for the request URL and stores Set-Cookie from responses.