parseCustomerCookie
parseCustomerCookie(
value,now?):CustomerCookieData|null
Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/customer/cookie.d.ts:21
Parse a raw cookie value back into the token set. Returns null for anything
unusable - garbage, an unknown wire version, a malformed expiry, or a token
that has already EXPIRED (now injectable for tests): a stale marker is
useless everywhere it is consumed, so expiry is part of validity here.
Parameters
Section titled “Parameters”string | null | undefined
Date
Returns
Section titled “Returns”CustomerCookieData | null