(code?: string | null)
| 6 | const REFERRAL_MAX_AGE = 60 * 60 * 24 * 30 |
| 7 | |
| 8 | export function normalizeReferralCode(code?: string | null) { |
| 9 | return Referral.normalizeCode(code) |
| 10 | } |
| 11 | |
| 12 | export function referralCookie(code: string) { |
| 13 | return `${REFERRAL_COOKIE}=${encodeURIComponent(code)}; Path=/; Max-Age=${REFERRAL_MAX_AGE}; SameSite=Lax; HttpOnly` |
no outgoing calls
no test coverage detected