You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the oauth desktop tauri flow, it kicks the user to the web to complete sign in and then should redirect after oauth is successful. However, if the oauth is successful but the actual 2nd part of the redirect of the login fails, it still says it's successful and will redirect. But the redirect doesn't happen, probably because it silently failed.
We need to make sure we handle errors on that web desktop redirect page for oauth. At least show that it errored.
It's specifically for desktop tauri login for oauth, then it redirects to the web, it completes the oauth handshake, goes back to maple's webpage after oauth redirect, gets the "Authentication successful! Redirecting you back to the app..." but it must have failed somewhere on this page/view and does nothing currently. It should show that there was a login error so the user doesn't think it'll be successful and wait there forever.
Activity
AnthonyRonning commentedon Nov 2, 2025
@claude please look into this.
It's specifically for desktop tauri login for oauth, then it redirects to the web, it completes the oauth handshake, goes back to maple's webpage after oauth redirect, gets the "Authentication successful! Redirecting you back to the app..." but it must have failed somewhere on this page/view and does nothing currently. It should show that there was a login error so the user doesn't think it'll be successful and wait there forever.
claude commentedon Nov 2, 2025
Claude finished @AnthonyRonning's task —— View job •
claude/issue-294-20251102-2209• Create PR ➔OAuth Desktop Flow Error Handling - Completed ✓
I've successfully added error handling to the OAuth desktop redirect flow for Tauri.
Tasks
Analysis
Found the issue in
auth.$provider.callback.tsx:38-80:Current behavior:
redirect-to-nativeflag to indicate Tauri auth flowwindow.location.href = deepLinkUrlRoot cause:
The deep link redirect can fail silently if:
Solution Implemented
Changes to
auth.$provider.callback.tsx:Added state management (lines 31-32):
redirectFailed: tracks if redirect faileddeepLinkUrl: stores the deep link for manual fallbackEnhanced redirect with timeout detection (lines 59-78):
window.location.hrefassignmentNew error UI (lines 179-216):
User experience improvements:
Testing Recommendations
To test this fix:
--- | Branch: claude/issue-294-20251102-2209
fix: Add error handling for OAuth desktop redirect failures