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
{{ message }}
Repository navigation
Commit ea81396
Browse filesBrowse the repository at this point in the historyBrowse files
fix(electron,ui): ignore stale OAuth callbacks and re-enable social buttons on return
Each transport redirect URL now carries a per-attempt id, so a callback from a
replaced attempt no longer resolves the newer flow. A replaced flow is dropped
without rejecting, so its card does not show an error over the new attempt.
Social buttons go idle when the app window regains focus while a transport
flow is pending.
Co-authored-by: steve-ai-vibe <[email protected]>
Copy file name to clipboardExpand all lines: .changeset/electron-replace-stale-oauth-flow.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,4 @@
2
2
'@clerk/electron': patch
3
3
---
4
4
5
-
Fix OAuth sign-in staying blocked after a user abandons the browser tab. Starting a new OAuth sign-in now replaces the pending one instead of failing with `Clerk: an OAuth flow is already pending.` until the 3-minute callback timeout. An unsupported OAuth URL no longer cancels a pending flow, a replaced flow's browser launch failure no longer rejects the new flow, and replacing a flow while its browser is still launching no longer causes an unhandled promise rejection in the main process.
5
+
Fix OAuth sign-in staying blocked after a user abandons the browser tab. Starting a new OAuth sign-in now replaces the pending one instead of failing with `Clerk: an OAuth flow is already pending.` until the 3-minute callback timeout. If the user later finishes the abandoned browser tab, its callback is ignored and no longer completes the newer sign-in.
In Electron apps, the social sign-in and sign-up buttons become clickable again when the user returns to the app without finishing OAuth in the browser. Before, they stayed disabled for up to 3 minutes.
0 commit comments