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

fix(paywall): prevent subscribe/app entitlement mismatch loop - #29

Merged
codybmenefee merged 1 commit into
mainfrom
codex/fix-entitlement-consistency
Feb 9, 2026
Merged

codybmenefee merged 1 commit into
mainfrom
codex/fix-entitlement-consistency

Conversation

@codybmenefee

Copy link
Copy Markdown
Owner

Summary

  • switch subscribe entitlement checks to use AppAuth context (hasPlan, hasFeature, isPlanLoaded)
  • remove direct useAuth().has dependency from subscribe route logic
  • keeps /subscribe and /app gating on the same entitlement source to prevent redirect loops

Validation

  • cd app && npx eslint src/routes/subscribe.tsx src/routes/app.tsx
  • cd app && npm run build

@codybmenefee
codybmenefee merged commit 49d968a into main Feb 9, 2026
1 check passed
@codybmenefee
codybmenefee deleted the codex/fix-entitlement-consistency branch February 9, 2026 04:41
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