Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
🦋 Changeset detectedLatest commit: b747678 The changes in this PR will be included in the next version bump. This PR includes changesets to release 23 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 |
…onnect Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brkalow
force-pushed
the
brk/clerk-connect-api-keys
branch
from
November 19, 2026 17:17
fdd34d3 to
09501dc
Compare
ClerkAPIError only copied known meta keys, so connection_id, connection_status, missing_scopes, scopes_not_allowed, connector and available_expires_in were dropped for both FAPI and BAPI errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BC1KwbuJdMgSFbBuHqcqEk
err.message was the HTTP reason ("Conflict", "Not Found"). Connect API
errors now carry the error's long_message (or message), and keep the
parsed errors with their meta.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BC1KwbuJdMgSFbBuHqcqEk
The UserProfile API key form uses the `apiKey` field id, which FieldId did not list, so @clerk/ui failed to type-check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BC1KwbuJdMgSFbBuHqcqEk
…me on connections
Connections now carry connectorStatus ('active' | 'disabled') and
connectorDisplayName, so an app can name and explain a connection whose
connector the admin turned off.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BC1KwbuJdMgSFbBuHqcqEk
…erProfile - One message per clerk_connect_error code, naming the service the flow went to (remembered in sessionStorage before the redirect). account_already_connected no longer says to try again. Unknown codes keep the generic message. - The banner clears on the next action (opening the menu or a row action, connecting, saving a key) and on a successful connect. - Rows use connectorDisplayName. A connection of a disabled connector shows an Unavailable badge and why, with no Reconnect or Replace; its disconnected rows are no longer hidden. - Each row shows its slug, so two accounts of one service differ. - Opening the Connect service menu closes an open Replace form. - Reconnect sits with the row actions, and the menu entry that reconnects names the account it reconnects. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BC1KwbuJdMgSFbBuHqcqEk
…horize disconnected slugs - create() and reauthorize() no longer resolve after they start the redirect: the promise never settles, so code after the await does not run on an unloading page. `redirect: false` returns the requires_action result (with action.url) without navigating. - create() on a slug whose connection is disconnected or needs attention (409 connection_reauthorization_required with meta.connection_id) reauthorizes that connection with the same returnUrl, scopes and apiKey. - Errors from these calls name SDK parameters (returnUrl, apiKey, additionalAccount) instead of API ones, in message, long message and meta.paramName. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BC1KwbuJdMgSFbBuHqcqEk
Adds ConnectionWebhookEvent (connection.created, connection.updated, connection.deleted) to the WebhookEvent union. Its payload is the Backend API connection object, with no credentials. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BC1KwbuJdMgSFbBuHqcqEk
The API key changeset still documented getCredential({ userId, key }).
It now uses slug, and a new changeset covers the connection fields, the
redirect option, the error changes and the webhook types.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BC1KwbuJdMgSFbBuHqcqEk
React calls a state initializer twice in development, and the first call removed the remembered connector, so the banner said "the service". The key is now removed in an effect after the first render. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BC1KwbuJdMgSFbBuHqcqEk
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Bryce
Description
Adds API key connectors to Clerk Connect in the SDKs and
<UserProfile />. When a connector'sauthenticationMethodisapi_key, picking it under Connected services opens a key form with the connector's instructions and help link, instead of redirecting. The row shows only a masked hint, and the menu offers "Replace API key". On the backend,clerkClient.connect.connections.getCredential({ userId, key })returns{ type: 'api_key', apiKey }.Stacked on #10649. Backend: clerk/clerk_go#24384. Related: #10919, clerk/dashboard#10837.
@clerk/shared:AvailableConnector.authenticationMethodandapiKeyhelp,CurrentUserConnection.apiKeyHint, optionalreturnUrlandapiKeyon create and reauthorize.@clerk/backend:ConnectConnectionCredentialis a union of OAuth and API key credentials.createandreauthorizeacceptapiKey, and connector configuration accepts{ type: 'api_key', instructions?, helpUrl? }.@clerk/ui: the key form, Replace API key, and the hint. Picking a connector whose only connection is disconnected now reconnects it, for OAuth too, instead of addinggithub-2.@clerk/localizations: newconnectionsSection.apiKeyFormstrings andactionLabel__replaceApiKey.Checklist
pnpm testruns as expected. Ran ConnectionsSection (11), ConnectApi (4) and the clerk-js connect module (2).pnpm buildruns as expected. Built shared and localizations, and typechecked ui and backend.Type of change
🤖 Generated with Claude Code