Preliminary Checks
Reproduction
https://github.com/JaapWeijland/clerk-external-account-reproduction
Publishable key
pk_test_aG9wZWZ1bC1tYWdwaWUtOTcuY2xlcmsuYWNjb3VudHMuZGV2JA
Description
Steps to reproduce:
- Fetch the user with
clerkClient.users.getUser()
- Inspect the ID of an external account connected to Google SSO:
user.externalAccounts[].id.
Expected behavior:
The id starting with eac_, so it can be consumed by clerkClient.users.deleteUserExternalAccount()
Actual behavior:
The id starting with idn_, causing clerkClient.users.deleteUserExternalAccount() to reject the ID with error:
ClerkAPIError {
code: 'external_account_not_found',
message: 'Invalid external account',
longMessage: 'The External Account was not found.',
meta: [Object]
}
The interesting thing is that, when I inspect the user JSON via the Clerk dashboard, it does show the correct id starting with eac_. So I think the SDK returns the wrong ID here.
Environment
Bun: v1.3.4
Clerk: `"@clerk/backend": "^2.29.2",`
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 have, no need to open an issue here)
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.
Reproduction
https://github.com/JaapWeijland/clerk-external-account-reproduction
Publishable key
pk_test_aG9wZWZ1bC1tYWdwaWUtOTcuY2xlcmsuYWNjb3VudHMuZGV2JA
Description
Steps to reproduce:
clerkClient.users.getUser()user.externalAccounts[].id.Expected behavior:
The id starting with
eac_, so it can be consumed byclerkClient.users.deleteUserExternalAccount()Actual behavior:
The id starting with
idn_, causingclerkClient.users.deleteUserExternalAccount()to reject the ID with error:The interesting thing is that, when I inspect the user JSON via the Clerk dashboard, it does show the correct id starting with
eac_. So I think the SDK returns the wrong ID here.Environment
Bun: v1.3.4 Clerk: `"@clerk/backend": "^2.29.2",`