Przejdź do głównej zawartości

Variable: REFERRAL_CODE_PATTERN

const REFERRAL_CODE_PATTERN: RegExp

Accepted code shape: letters, digits and dashes (codes are case-insensitive — the API uppercases on lookup). Mirrors the platform referral-code charset; a non-conforming value is never persisted to the cookie, because the API would silently ignore it at signup anyway — storing it for 30 days would just carry dead weight (or someone's injection attempt) around. Widen this pattern only together with the customerSignup.referralCode API contract.