Skip to content
This repository was archived by the owner on Oct 1, 2026. It is now read-only.

fix(paywall): avoid B2C lockout from slug mismatch - #28

Merged
codybmenefee merged 1 commit into
mainfrom
codex/fix-b2c-paywall-entitlements
Feb 9, 2026
Merged

codybmenefee merged 1 commit into
mainfrom
codex/fix-b2c-paywall-entitlements

Conversation

@codybmenefee

Copy link
Copy Markdown
Owner

Summary

  • expand accepted B2C plan slugs (early-access, homesteader, existing slugs)
  • allow paywall access via Clerk features as well as plans using has()
  • add optional env overrides for slugs: VITE_BILLING_PLAN_SLUGS, VITE_BILLING_FEATURE_SLUGS
  • keep Clerk has() as source of truth (no Convex billing mirror dependency)

Why

Users can get stuck on /subscribe if Clerk plan slug naming differs from hardcoded expectations.

Validation

  • cd app && npx eslint src/lib/auth/billing.ts src/routes/app.tsx src/routes/subscribe.tsx
  • cd app && npm run build

@codybmenefee
codybmenefee merged commit 1f8a323 into main Feb 9, 2026
1 check passed
@codybmenefee
codybmenefee deleted the codex/fix-b2c-paywall-entitlements branch February 9, 2026 04:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant