Function: parseCartCookieValue()
parseCartCookieValue(
raw):CartCredentials|null
Parse the raw cart-id cookie value into { cartId, cartSecret }.
"<uuid>.<secret>"→ both halves (split on the first dot)."<uuid>"(no dot, legacy) →{ cartId, cartSecret: null }.- trailing dot (
"<uuid>.") → id only,cartSecret: null. - empty / leading-dot / blank →
null(no usable cart id).
Parameters
raw
string | null | undefined
Returns
CartCredentials | null