Skip to content

fix(referral/verify): stop exposing inviter's internal user id in response - #1467

Open
rajanpanth wants to merge 1 commit into
SuperteamDAO:mainfrom
rajanpanth:pr3-referral-pii
Open

fix(referral/verify): stop exposing inviter's internal user id in response#1467
rajanpanth wants to merge 1 commit into
SuperteamDAO:mainfrom
rajanpanth:pr3-referral-pii

Conversation

@rajanpanth

Copy link
Copy Markdown

The public, unauthenticated referral/verify endpoint returned the inviter's internal user id in the response alongside their display name and photo. The id isn't used by the invite UI and only aids enumeration, so it's removed from the response payload.

It remains in the Prisma select because the remaining-slots count keys on it. Display name and photo (needed to render the invite screen) are unchanged.

pnpm check-types and pnpm lint pass.

…ponse

The public, unauthenticated referral-verify endpoint returned the
inviter's internal user id in the response alongside their display name
and photo. The id isn't used by the invite UI and only aids enumeration.
It's removed from the response payload; it remains selected internally
because the remaining-slots count keys on it.
@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

@rajanpanth is attempting to deploy a commit to the Superteam Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@rajanpanth, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 58 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 063d9fa9-64e4-47b0-b8a3-f12d2b21f2ee

📥 Commits

Reviewing files that changed from the base of the PR and between af39bd1 and 95edc99.

📒 Files selected for processing (1)
  • src/pages/api/user/referral/verify.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant