• Steven's avatar
    refactor(web): improve auth flow and eliminate route duplication · b0aeb06f
    Steven authored
    - Extract route paths to router/routes.ts as single source of truth
    - Refactor connect.ts auth interceptor with better structure and error handling
      - Add TokenRefreshManager class to prevent race conditions
      - Implement smart redirect logic for public/private routes
      - Support unauthenticated access to explore and user profile pages
      - Add proper error handling for missing access tokens
      - Extract magic strings to named constants
    - Maintain backward compatibility by aliasing Routes to ROUTES
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    Co-Authored-By: 's avatarClaude Sonnet 4.5 <noreply@anthropic.com>
    b0aeb06f
routes.ts 308 Bytes