Discord OAuth Setup Verification Checklist
🔴 CRITICAL: OAuth Redirect URI Registration
Step 1: Open Discord Developer Portal
Step 2: Verify Redirect URI is Registered
https://aethex.dev/api/discord/oauth/callbackhttp://localhost:5173/api/discord/oauth/callbackStep 3: Add Missing Redirect URI (If Needed)
https://aethex.dev/api/discord/oauth/callback
🟢 TESTING THE DISCORD LINKING FLOWS
Test Flow 1: Discord /verify Command
/verify CommandTest Flow 2: Dashboard "Link Discord" Button
🔵 ENVIRONMENT VARIABLES CHECKLIST
Frontend (code/.env or deployment platform)
Backend/Server (environment variables)
🟡 COMMON ISSUES & SOLUTIONS
Issue 1: "Session Lost" Error After Discord OAuth
Issue 2: Discord Link Disappears After Page Reload
Issue 3: Wrong Redirect Page After /verify Command
/verify CommandIssue 4: "Already Linked" Error in /verify Command
/verify Command🟣 DEBUGGING STEPS
Step 1: Check Browser Console
Step 2: Check Network Tab
Step 3: Check Supabase
Step 4: Check Discord Dev Portal
✅ Verification Checklist
Related Documentation
PreviousDiscord OAuth Login Fix - Account Auto-Creation RemovedNextDiscord OAuth Connection Verification & Testing
Last updated
