Skip to content

feat: require X verification to comment#161

Draft
snackman wants to merge 3 commits into
masterfrom
x-verify-comments
Draft

feat: require X verification to comment#161
snackman wants to merge 3 commits into
masterfrom
x-verify-comments

Conversation

@snackman

@snackman snackman commented May 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Users must connect their X account via OAuth before posting comments
  • Replaces self-reported X handle with verified OAuth identity
  • CommentSection shows "Connect X to comment" CTA for unverified users
  • Profile settings show verified handle with disconnect option

Database

  • New columns: x_verified, x_oauth_id, x_avatar_url on profiles table
  • Migration: supabase/migrations/20260505_add_x_verification.sql

Prerequisites (manual)

  • Enable Twitter/X OAuth provider in Supabase Dashboard
  • Enable manual_linking in Supabase auth settings
  • Create X Developer App with OAuth 2.0

Test plan

  • Unverified user sees "Connect X to comment" instead of input
  • Clicking connect redirects to X OAuth
  • After auth, profile shows verified handle with green check
  • Verified user can post comments
  • Disconnect removes verification

🤖 Generated with Claude Code

- Add x_verified, x_oauth_id, x_avatar_url columns to profiles
- Create useXVerification hook for OAuth identity linking
- Gate comment input behind X verification with connect CTA
- Replace free-text X handle input with OAuth verify/disconnect UI
- Re-enable CommentSection with verification gate
- Add analytics tracking for X connect/disconnect
@vercel

vercel Bot commented May 5, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
sheeets Error Error May 6, 2026 3:40am

Request Review

When not logged in, tapping the comment area now shows a "Sign in to comment"
button that opens the auth modal.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Always show "Connect X to comment" regardless of auth state
- If not logged in, clicking shows email input → creates account silently
  (no OTP required until next login) → proceeds to X OAuth
- If logged in but X not verified → goes straight to X OAuth
- Removes separate "Sign in" button and AuthModal dependency

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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