Skip to content

Validate referral invite emails before throttling#144

Open
absalonCRC wants to merge 1 commit into
profullstack:masterfrom
absalonCRC:fix-referral-invite-validation-order
Open

Validate referral invite emails before throttling#144
absalonCRC wants to merge 1 commit into
profullstack:masterfrom
absalonCRC:fix-referral-invite-validation-order

Conversation

@absalonCRC
Copy link
Copy Markdown

@absalonCRC absalonCRC commented May 21, 2026

Summary

Why

The referral invite API applied hourly/daily invite limits before proving that any submitted email was usable. A batch of invalid email strings could return 429 Too many invites instead of a 400 validation error.

Validation

  • pnpm test:run src/app/api/referrals/route.test.ts
  • pnpm exec eslint src/app/api/referrals/route.ts src/app/api/referrals/route.test.ts
  • pnpm type-check
  • git diff --check

Payment for the active uGig affiliate testing bounty can go to SOL: 27sdMYXofqoM9qR13bZhccRNYeEgYn5EoHXTSJn4QWKP.

Payment fallback: PayPal cultofrozen@gmail.com

@absalonCRC
Copy link
Copy Markdown
Author

absalonCRC commented May 21, 2026

Maintainer note for the active uGig affiliate/referral testing bounty (4741218f-a723-46bb-82cb-6516120331ae): I have a clean stack of focused bug-fix PRs ready for review, all with Socket checks passing and no review comments so far.

Clean PRs submitted for this bounty:

Payment address for the bounty: SOL 27sdMYXofqoM9qR13bZhccRNYeEgYn5EoHXTSJn4QWKP.

Happy to adjust any of these if you prefer a different validation/error-handling style.

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.

bug: referral invite validation reports rate limits for invalid email batches

1 participant