Remove invite code system — open signup#30
Merged
Conversation
Invite codes were unnecessary friction now that all free accounts have a default 7-day limit (10 messages/day) with automatic expiry. A paying customer was blocked by the invite code requirement. Anyone can now sign up directly with email/password or Google OAuth. The 7-day free tier + Pro upgrade is the new gating mechanism. - Remove 3 server endpoints (validate-invite, use-invite, activate-trial) - Simplify signup endpoint to just email + password (no invite code) - Remove invite code step from SignupPage (single-step form) - Remove trial activation logic from AuthContext - Update CLAUDE.md to reflect open signup flow The invite_codes table and DB functions are left in place (legacy, unused). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
validate-invite,use-invite,activate-trial— onlyPOST /api/auth/signupremains (simplified to email + password)invite→signup→done), now a single form with email/password + Google OAuthpendingTrialDayssessionStorage handoff for Google OAuthThe
invite_codestable and DB functions are left in place (no migration needed — dropping is unnecessary risk).Why this is safe
trial_expires_atstamped explicitly by the signup endpointtrial_expires_atvia the usage gate fallback (created_at + 7 days)/api/auth(10 req/min) still prevents abuseadmin.createUser()is server-side only — no client-side Supabase signup abusetrial_expires_atis already stamped)Net change: 6 files changed, +25 −377
Test plan
FREE_EXPIREDresponse, prompted to upgradenpm run web:buildpasses🤖 Generated with Claude Code