Variable: REFERRAL_COOKIE_MAX_AGE
constREFERRAL_COOKIE_MAX_AGE:number
Default cookie lifetime: 30 days.
This is the "landing → signup" window only. It is intentionally NOT tied to
the shop's referral validity setting (days the referred customer has to
place their first order) — that window starts at signup and is validated
exclusively by the backend. Coupling the two would be wrong: a shop giving
referred customers 7 days to order would silently lose visitors who sign up
8 days after clicking the link. Override per call via
captureReferralCode({ maxAge }) if you need a different capture window.