core: keep Go referral invites recognized at signup

This commit is contained in:
vimtor
2026-05-18 22:04:46 +02:00
parent aad5a96e56
commit 769b982803

View File

@@ -1,6 +1,6 @@
import { Referral } from "@opencode-ai/console-core/referral.js"
const INVITE_COOKIE = "opencode.go.invite"
const INVITE_COOKIE = "oc_referral"
const INVITE_MAX_AGE = 60 * 60 * 24 * 30
export function normalizeInviteCode(code?: string | null) {