MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / isPostHogCookie

Function isPostHogCookie

packages/web/src/lib/posthog.ts:19–23  ·  view source on GitHub ↗
(cookie: unknown)

Source from the content-addressed store, hash-verified

17}
18
19const isPostHogCookie = (cookie: unknown): cookie is PostHogCookie => {
20 return typeof cookie === 'object' &&
21 cookie !== null &&
22 'distinct_id' in cookie;
23}
24
25/**
26* Attempts to retrieve the PostHog cookie from the given cookie store, returning

Callers 1

getPostHogCookieFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected