Przejdź do głównej zawartości

Function: readReferralCodeCookie()

readReferralCodeCookie(): Promise<string | null>

Read the first-party referral-code cookie (server-first, client fallback) — the referral code captured when the visitor landed through a referral share link. Useful for SSR-rendered signup forms that pre-fill the code field; pass it as customerSignup(input: { referralCode }).

Returns

Promise<string | null>