René's URL Explorer Experiment


Title: Backend SDK: ExternalAccount.id returns identification ID (idn_), unusable with deleteUserExternalAccount · Issue #7936 · clerk/javascript · GitHub

Open Graph Title: Backend SDK: ExternalAccount.id returns identification ID (idn_), unusable with deleteUserExternalAccount · Issue #7936 · clerk/javascript

X Title: Backend SDK: ExternalAccount.id returns identification ID (idn_), unusable with deleteUserExternalAccount · Issue #7936 · clerk/javascript

Description: Preliminary Checks I have reviewed the documentation: https://clerk.com/docs I have searched for existing issues: https://github.com/clerk/javascript/issues I have not already reached out to Clerk support via email or Discord (if you hav...

Open Graph Description: Preliminary Checks I have reviewed the documentation: https://clerk.com/docs I have searched for existing issues: https://github.com/clerk/javascript/issues I have not already reached out to Clerk ...

X Description: Preliminary Checks I have reviewed the documentation: https://clerk.com/docs I have searched for existing issues: https://github.com/clerk/javascript/issues I have not already reached out to Clerk ...

Opengraph URL: https://github.com/clerk/javascript/issues/7936

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Backend SDK: ExternalAccount.id returns identification ID (idn_), unusable with deleteUserExternalAccount","articleBody":"### Preliminary Checks\n\n- [x] I have reviewed the documentation: https://clerk.com/docs\n\n- [x] I have searched for existing issues: https://github.com/clerk/javascript/issues\n\n- [x] I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)\n\n- [x] This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.\n\n\n### Reproduction\n\nNo external reproduction needed — reproducible with any Clerk Backend SDK project. See description for steps.\n\n### Publishable key\n\npk_test_ZGlzdGluY3QtcGlnLTgyLmNsZXJrLmFjY291bnRzLmRldiQ\n\n### Description\n\n## Bug Description\n\nThe `@clerk/backend` SDK's `ExternalAccount.fromJSON()` maps `data.id` (which is an identification ID with `idn_` prefix) to `this.id`, but completely ignores the `external_account_id` field from the raw API response (which has an `eac_` prefix). This means `deleteUserExternalAccount()` always fails with a 404 because it receives an `idn_` ID instead of the `eac_` ID it expects.\n\n## Steps to reproduce\n\n1. Have a user who signed up via Google OAuth\n2. Call `clerk.users.getUser(userId)` via the Backend SDK (`@clerk/backend`)\n3. Log `user.externalAccounts[0].id` — it returns an `idn_` prefixed ID (e.g., `idn_3ABXLLckIF5kLikvzAVRxuuN31M`)\n4. Attempt to delete: `clerk.users.deleteUserExternalAccount({ userId, externalAccountId: user.externalAccounts[0].id })`\n5. Clerk returns **404**: `external_account_not_found` / \"The External Account was not found.\"\n\n## Root Cause\n\nThe raw JSON response from `GET /v1/users/{userId}` includes both fields on each external account object:\n\n```json\n{\n  \"id\": \"idn_3ABXLLckIF5kLikvzAVRxuuN31M\",\n  \"external_account_id\": \"eac_3ABXLObDmeHsnLsLgOd5panvOPJ\",\n  \"identification_id\": \"idn_3ABXLLckIF5kLikvzAVRxuuN31M\",\n  \"provider\": \"oauth_google\",\n  ...\n}\n```\n\nThe SDK's `ExternalAccount.fromJSON()` ([source](https://github.com/clerk/javascript/blob/main/packages/backend/src/api/resources/ExternalAccount.ts)) maps:\n- `data.id` → `this.id` (gets `idn_` value)\n- `data.identification_id` → `this.identificationId` (also `idn_`)\n- **`data.external_account_id` is never mapped**\n\nMeanwhile, `deleteUserExternalAccount()` builds the path as `/users/{userId}/external_accounts/{externalAccountId}` and expects the `eac_` prefixed ID.\n\n## Expected behavior\n\n`ExternalAccount.id` should return the external account resource ID (`eac_` prefix), or the class should expose `externalAccountId` as a separate property, so that `deleteUserExternalAccount()` works with the ID from `getUser()`.\n\n## Actual behavior\n\n`ExternalAccount.id` returns the identification ID (`idn_` prefix), which causes `deleteUserExternalAccount()` to fail with 404.\n\n## Workaround\n\nMake a raw `fetch` to `GET /v1/users/{userId}` and use the `external_account_id` field from the JSON response:\n\n```typescript\nconst rawResponse = await fetch(`https://api.clerk.com/v1/users/${userId}`, {\n  headers: { Authorization: `Bearer ${secretKey}` },\n})\nconst rawUser = await rawResponse.json()\nconst eacId = rawUser.external_accounts[0].external_account_id // \"eac_xxx\"\nawait clerk.users.deleteUserExternalAccount({ userId, externalAccountId: eacId }) // works\n```\n\n### Environment\n\n```Shell\nSystem:\n  OS: macOS Darwin 25.2.0\n  Node: v24.12.0\n\nnpmPackages:\n  @clerk/backend: 2.5.0\n```","author":{"url":"https://github.com/nspady","@type":"Person","name":"nspady"},"datePublished":"2026-02-26T01:09:10Z","url":"https://github.com/clerk/javascript/issues/7936"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c2394c59-e7f4-6d83-2b9d-85b2960795d3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9CB2:3491F9:12EC6B8:19E6AA0:6AFB6DAD
html-safe-noncef15ff8a7a6ae4c45f4eb04a40a1625c21febe55382eb4eb0d99872e37dce3b0d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0IyOjM0OTFGOToxMkVDNkI4OjE5RTZBQTA6NkFGQjZEQUQiLCJ2aXNpdG9yX2lkIjoiNzg4NzQ4Mjk4MTYxMzAwNjI1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2d5258b8c8dd87d83a83ac20eb1f00268423dc95f7f254cabbda7eeb8cc80dc8
hovercard-subject-tagissue:3992662663
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/clerk/javascript/7936/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3215803af586e700f9b21f8cd928daf9fd53c5a1fa85e0a09a15b5a4583c6a9b/clerk/javascript/issues/7936
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3215803af586e700f9b21f8cd928daf9fd53c5a1fa85e0a09a15b5a4583c6a9b/clerk/javascript/issues/7936
og:image:altPreliminary Checks I have reviewed the documentation: https://clerk.com/docs I have searched for existing issues: https://github.com/clerk/javascript/issues I have not already reached out to Clerk ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenspady
hostnamegithub.com
expected-hostnamegithub.com
Nonecca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700
turbo-cache-controlno-preview
go-importgithub.com/clerk/javascript git https://github.com/clerk/javascript.git
octolytics-dimension-user_id49538330
octolytics-dimension-user_loginclerk
octolytics-dimension-repository_id438331492
octolytics-dimension-repository_nwoclerk/javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id438331492
octolytics-dimension-repository_network_root_nwoclerk/javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release88808b1fae5ab8a526a73e7ce5542a10eb9d6971
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/clerk/javascript/issues/7936#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fissues%2F7936
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fissues%2F7936
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=clerk%2Fjavascript
Reloadhttps://github.com/clerk/javascript/issues/7936
Reloadhttps://github.com/clerk/javascript/issues/7936
Reloadhttps://github.com/clerk/javascript/issues/7936
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues45 (45)https://github.com/clerk/javascript/issues
Pull requests110 (110)https://github.com/clerk/javascript/pulls
Discussionshttps://github.com/clerk/javascript/discussions
Actionshttps://github.com/clerk/javascript/actions
Security and quality6 (6)https://github.com/clerk/javascript/security
Insightshttps://github.com/clerk/javascript/pulse
https://github.com/clerk/javascript
New issuehttps://github.com/login?return_to=https://github.com/clerk/javascript/issues/7936
New issuehttps://github.com/login?return_to=https://github.com/clerk/javascript/issues/7936
#8995https://github.com/clerk/javascript/pull/8995
Backend SDK: ExternalAccount.id returns identification ID (idn_), unusable with deleteUserExternalAccounthttps://github.com/clerk/javascript/issues/7936#top
#8995https://github.com/clerk/javascript/pull/8995
needs-triageA ticket that needs to be triaged by a team memberhttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22needs-triage%22
https://github.com/nspady
nspadyhttps://github.com/nspady
on Feb 26, 2026https://github.com/clerk/javascript/issues/7936#issue-3992662663
https://clerk.com/docshttps://clerk.com/docs
https://github.com/clerk/javascript/issueshttps://github.com/clerk/javascript/issues
https://clerk.com/discordhttps://clerk.com/discord
sourcehttps://github.com/clerk/javascript/blob/main/packages/backend/src/api/resources/ExternalAccount.ts
nspadyhttps://github.com/nspady
needs-triageA ticket that needs to be triaged by a team memberhttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22needs-triage%22
on Feb 26, 2026https://github.com/clerk/javascript/issues/7936#event-23086951749
jacekradkohttps://github.com/jacekradko
completedhttps://github.com/clerk/javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#8995https://github.com/clerk/javascript/pull/8995
on Jun 26, 2026https://github.com/clerk/javascript/issues/7936#event-27246371950
jacekradkohttps://github.com/jacekradko
on Jun 26, 2026https://github.com/clerk/javascript/issues/7936#event-27246371999
fix(backend): expose externalAccountId on ExternalAccount resource (#…https://github.com/clerk/javascript/commit/a8c727c6ad44121204c1fcc95ee356199643a8a9
#…https://github.com/clerk/javascript/pull/8995
https://docs.github.com/articles/closing-issues-via-commit-messages
a8c727chttps://github.com/clerk/javascript/commit/a8c727c6ad44121204c1fcc95ee356199643a8a9
Sign up for freehttps://github.com/signup?return_to=https://github.com/clerk/javascript/issues/7936
Sign in to commenthttps://github.com/login?return_to=https://github.com/clerk/javascript/issues/7936
needs-triageA ticket that needs to be triaged by a team memberhttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22needs-triage%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.