Fix the callback route handling in App.tsx so that when a user lands on /callback during Auth0 code exchange, the app shows a loading state instead of redirecting to homepage.
Problem
App.tsx:545 requires isCallbackRoute && isAuthenticated to render CallbackPage. On mobile, if Auth0 SDK hasn't finished the code exchange when isLoading becomes false, the user on /callback hits the !isAuthenticated guard at line 602 and gets redirected to /.
Changes
File: frontend/src/App.tsx
Move callback route handling before the !isAuthenticated guard
When on /callback and not yet authenticated, show "Processing login..." loading state
Allow Auth0 SDK time to complete code exchange on mobile
Acceptance Criteria
/callback route shows loading state while Auth0 processes
After code exchange completes, CallbackPage renders correctly
Desktop callback flow unaffected
Relates to #188
## Summary
Fix the callback route handling in App.tsx so that when a user lands on `/callback` during Auth0 code exchange, the app shows a loading state instead of redirecting to homepage.
## Problem
App.tsx:545 requires `isCallbackRoute && isAuthenticated` to render CallbackPage. On mobile, if Auth0 SDK hasn't finished the code exchange when `isLoading` becomes `false`, the user on `/callback` hits the `!isAuthenticated` guard at line 602 and gets redirected to `/`.
## Changes
- **File**: `frontend/src/App.tsx`
- Move callback route handling before the `!isAuthenticated` guard
- When on `/callback` and not yet authenticated, show "Processing login..." loading state
- Allow Auth0 SDK time to complete code exchange on mobile
## Acceptance Criteria
- [ ] `/callback` route shows loading state while Auth0 processes
- [ ] After code exchange completes, CallbackPage renders correctly
- [ ] Desktop callback flow unaffected
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Relates to #188
Summary
Fix the callback route handling in App.tsx so that when a user lands on
/callbackduring Auth0 code exchange, the app shows a loading state instead of redirecting to homepage.Problem
App.tsx:545 requires
isCallbackRoute && isAuthenticatedto render CallbackPage. On mobile, if Auth0 SDK hasn't finished the code exchange whenisLoadingbecomesfalse, the user on/callbackhits the!isAuthenticatedguard at line 602 and gets redirected to/.Changes
frontend/src/App.tsx!isAuthenticatedguard/callbackand not yet authenticated, show "Processing login..." loading stateAcceptance Criteria
/callbackroute shows loading state while Auth0 processes