Axiom Model: Phase 1 Code Migration Scope
Moving Identity from aethex.dev (Vercel) to aethex.foundation (Replit)
1. PAGES TO COPY
Authentication & Onboarding Pages
File
Purpose
Notes
Profile & Settings Pages
File
Purpose
Notes
Passport Pages
File
Purpose
Notes
2. CONTEXTS & STATE MANAGEMENT
File
Purpose
Dependencies
3. COMPONENTS TO COPY
Auth & OAuth Components
File
Purpose
Profile & Passport Components
File
Purpose
Shared UI Components
Directory
Purpose
4. API ENDPOINTS & SERVERLESS FUNCTIONS TO COPY
Discord OAuth Endpoints
File
Endpoint
Purpose
Profile & Auth Endpoints
File
Endpoint
Purpose
Passport Endpoints
File
Endpoint
Purpose
5. DATABASE MIGRATIONS TO COPY
File
Purpose
6. LIBRARIES & DEPENDENCIES
Required npm packages (verify in aethex.dev package.json)
Environment Variables Needed
7. CRITICAL ADAPTATIONS FOR REPLIT TARGET
Current (aethex.dev)
Needed for aethex.foundation
Key Refactoring Points
8. NEW SSO ENDPOINTS TO BUILD (Foundation)
1. /authorize (Foundation SSO Authorization)
/authorize (Foundation SSO Authorization)2. /token (Foundation SSO Token Exchange)
/token (Foundation SSO Token Exchange)3. /userinfo (Foundation SSO User Info)
/userinfo (Foundation SSO User Info)9. MIGRATION CHECKLIST
Before Starting Phase 1
During Phase 1
Testing Phase 1
10. SUCCESS CRITERIA FOR PHASE 1
11. ESTIMATED EFFORT
Task
Estimate
12. BLOCKERS & RISKS
Next Steps
Last updated
