Repository navigation
fix(ui): show OAuth transport failures in Connected Accounts - #10878
wobsoriano wants to merge 3 commits into
Conversation
The connect button stays loading and no error appears when the Electron OAuth transport rejects, for example when the system browser cannot open. Reconnect also shows no error.
A transport rejects with a plain error. handleError rethrows plain errors, so connect skipped card.setIdle and stayed loading, and reconnect showed nothing. Wrap transport.open rejections in a ClerkRuntimeError with the something_went_wrong code so both paths show the localized error and connect resets its buttons.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 9351fc4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
API Changes Report
Summary
No API Changes DetectedAll packages have stable APIs with no detected changes. Report generated by Break Check Last ran on |
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-native-components
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
|


Description
In Electron apps, Connected Accounts in
<UserProfile />got stuck when the OAuth transport failed, for example when the system browser couldn't open or the callback timed out. The connect buttons stayed disabled with no error, and reconnect failed silently. The transport rejects with a plainError, andhandleErrorrethrows errors it doesn't recognize, so the card never went back to idle.Transport failures are now wrapped in a
ClerkRuntimeErrorwith thesomething_went_wrongcode. Connect and reconnect show "Something went wrong. Please try again.", and the connect buttons are enabled again.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
🤖 Generated with Claude under Rob's supervision.