MCPcopy Create free account
hub / github.com/cartesiancs/map3d / getCookie

Function getCookie

src/utils/cookie.ts:18–24  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

16};
17
18export const getCookie = (key: string) => {
19 const cookieList = getCookies();
20 if (!cookieList.hasOwnProperty(key)) {
21 return "";
22 }
23 return cookieList[key];
24};
25
26export const setCookie = (key: string, value: string, expDays: number = 6) => {
27 const date = new Date();

Callers 2

axios.tsFile · 0.90
checkFleetLoginFunction · 0.90

Calls 1

getCookiesFunction · 0.85

Tested by

no test coverage detected