Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/another_cookiejar/CookieJar.ts>CookieJar#getCookie

https://deno.land/x/another_cookiejar
Go to Latest
method CookieJar.prototype.getCookie
import { CookieJar } from "https://deno.land/x/another_cookiejar@v2.2.1/CookieJar.ts";

Gets the first cooking matching the defined properties of a given Cookie or CookieOptions. returns undefined if not found or expired. creationDate prop is not checked. Also removes the cookie and returns undefined if cookie is expired.

Returns

Cookie | undefined