Skip to content

Fix critical auth, billing, and build correctness issues#53

Open
cursor[bot] wants to merge 4 commits into
mainfrom
cursor/critical-correctness-bugs-ddef
Open

Fix critical auth, billing, and build correctness issues#53
cursor[bot] wants to merge 4 commits into
mainfrom
cursor/critical-correctness-bugs-ddef

Conversation

@cursor

@cursor cursor Bot commented May 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Require the GitHub access-token cookie to match the stored session token, or validate the presented token with GitHub before returning a DB user.
  • Sync Stripe webhook subscription events into Neon subscriptions and user_auth billing state instead of unrelated Supabase tables, and return 500 on processing failures so Stripe retries.
  • Gate Build App behind active Pro billing and stop the SSE stream with an error when any generated file push fails.

Validation

  • pnpm exec tsc --noEmit passes.
  • pnpm lint still fails on pre-existing unrelated lint errors; changed files are not reported.
Open in Web View Automation 

cursoragent and others added 3 commits May 23, 2026 11:07
Co-authored-by: Cole Collins <DealPatrol@users.noreply.github.com>
Co-authored-by: Cole Collins <DealPatrol@users.noreply.github.com>
Co-authored-by: Cole Collins <DealPatrol@users.noreply.github.com>
@vercel

vercel Bot commented May 23, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
repo-app-architect Ready Ready Preview, Comment May 31, 2026 5:43am
repofuse Ready Ready Preview, Comment, Open in v0 May 31, 2026 5:43am
v0-repo-app-architect Ready Ready Preview, Comment, Open in v0 May 31, 2026 5:43am

@supabase

supabase Bot commented May 23, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project bpjftwoiosftvjvxpovz because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@DealPatrol

Copy link
Copy Markdown
Owner

@copilot resolve the merge conflicts in this pull request. Then merge into main

@DealPatrol DealPatrol marked this pull request as ready for review May 31, 2026 05:39
…ctness-bugs-ddef

# Conflicts:
#	app/api/build-app/route.ts
#	app/api/stripe/webhook/route.ts
#	lib/auth.ts

Copilot AI commented May 31, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request. Then merge into main

Resolved the conflicts in lib/auth.ts, app/api/build-app/route.ts, and app/api/stripe/webhook/route.ts and pushed the merge commit (ee0b2f0). pnpm exec tsc --noEmit passes cleanly. The branch is now up to date with main and ready to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants