From b99ef3c8ce6a2f531e2cac725d462254a6fe606b Mon Sep 17 00:00:00 2001 From: sirpiglr <49359077-sirpiglr@users.noreply.replit.com> Date: Wed, 3 Dec 2025 02:46:14 +0000 Subject: [PATCH] Update documentation for Discord OAuth and verification fixes Add detailed Discord OAuth redirect URL configurations and note recent fixes for alphanumeric verification codes, API error tracking, and bot deployment. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: ecea0689-f124-449f-b840-e1543d4f8b5b Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/saoW2ee Replit-Helium-Checkpoint-Created: true --- .replit | 4 ++++ replit.md | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/.replit b/.replit index b28a4fdd..064933dd 100644 --- a/.replit +++ b/.replit @@ -52,6 +52,10 @@ externalPort = 80 localPort = 8044 externalPort = 3003 +[[ports]] +localPort = 36727 +externalPort = 3002 + [[ports]] localPort = 38557 externalPort = 3000 diff --git a/replit.md b/replit.md index 8798943e..244144b1 100644 --- a/replit.md +++ b/replit.md @@ -126,12 +126,32 @@ user.aethex.me → fetches from https://aethex.foundation/api/passport/subdomain project.aethex.space → fetches from https://aethex.foundation/api/passport/project/{slug} ``` +## Discord OAuth Configuration + +### Discord Developer Portal (OAuth2 > Redirects) +``` +https://aethex.dev/api/discord/oauth/callback +https://aethex.foundation/api/discord/oauth/callback +https://supabase.aethex.tech/auth/v1/callback +``` + +### Supabase Dashboard (Authentication > URL Configuration) +- **Site URL**: `https://aethex.foundation` +- **Redirect URLs**: + - `https://aethex.dev/**` + - `https://aethex.foundation/**` + - `https://supabase.aethex.tech/auth/v1/callback` + ## Recent Changes (December 3, 2025) - ✅ Fixed passport subdomain API to call aethex.foundation (identity authority) - ✅ Fixed API paths: `subdomain-data` → `subdomain`, `project-data` → `project` - ✅ Restored wildcard rewrites in vercel.json for `*.aethex.me` and `*.aethex.space` - ✅ Added missing routes to vercel.json: /community/*, /developers/*, /discord-verify/*, /ethos/* - ✅ Added catch-all route for future paths +- ✅ Fixed Discord verification code input to accept alphanumeric codes (was filtering out letters) +- ✅ Added step-by-step error tracking to verify-code API for debugging +- ✅ Configured Discord OAuth redirect URLs for multi-domain setup +- ✅ Discord bot running on Replit (moved from Railway) ## Recent Changes (December 2, 2025) - ✅ Configured Vite to run on port 5000 for Replit compatibility