fix: Callback route guard allows Auth0 code exchange to complete (#188) #189
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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