Skip to content

feat(backend,clerk-js): Add providerUserId field to ExternalAccount#7778

Open
Jibaru wants to merge 1 commit intorelease/core-2from
irueda/user-39-difference-between-google-oauth-data-and-other-providers-2
Open

feat(backend,clerk-js): Add providerUserId field to ExternalAccount#7778
Jibaru wants to merge 1 commit intorelease/core-2from
irueda/user-39-difference-between-google-oauth-data-and-other-providers-2

Conversation

@Jibaru
Copy link
Contributor

@Jibaru Jibaru commented Feb 5, 2026

Description

Add providerUserId as a new field to the ExternalAccount resource to provide a clearer way to access the unique user ID from OAuth providers. This field is now the preferred way to retrieve provider user identifiers.

The existing externalId field is deprecated in favor of providerUserId for better clarity and consistency across the API. The externalId field remains available but is marked with @deprecated JSDoc annotation to guide developers toward the new field.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Summary by CodeRabbit

  • New Features

    • Added providerUserId field to external accounts for accessing OAuth provider user identifiers.
  • Documentation

    • Deprecated externalId in favor of providerUserId.

@changeset-bot
Copy link

changeset-bot bot commented Feb 5, 2026

🦋 Changeset detected

Latest commit: fa30ac4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 14 packages
Name Type
@clerk/clerk-js Minor
@clerk/backend Minor
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch
@clerk/agent-toolkit Patch
@clerk/astro Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/remix Patch
@clerk/tanstack-react-start Patch
@clerk/testing Patch

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

@vercel
Copy link

vercel bot commented Feb 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Ready Ready Preview, Comment Feb 5, 2026 7:16pm

Request Review

Add providerUserId as a new field to the ExternalAccount resource to
provide a clearer way to access the unique user ID from OAuth
providers. This field is now the preferred way to retrieve provider
user identifiers.

The existing externalId field is deprecated in favor of providerUserId
for better clarity and consistency across the API. The externalId field
remains available but is marked with @deprecated JSDoc annotation to
guide developers toward the new field.
@Jibaru Jibaru force-pushed the irueda/user-39-difference-between-google-oauth-data-and-other-providers-2 branch from ef84179 to fa30ac4 Compare February 5, 2026 19:15
@Jibaru Jibaru requested review from a team February 5, 2026 19:15
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 5, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch irueda/user-39-difference-between-google-oauth-data-and-other-providers-2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 5, 2026

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@7778

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@7778

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@7778

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@7778

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@7778

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@7778

@clerk/elements

npm i https://pkg.pr.new/@clerk/elements@7778

@clerk/clerk-expo

npm i https://pkg.pr.new/@clerk/clerk-expo@7778

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@7778

@clerk/express

npm i https://pkg.pr.new/@clerk/express@7778

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@7778

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@7778

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@7778

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@7778

@clerk/clerk-react

npm i https://pkg.pr.new/@clerk/clerk-react@7778

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@7778

@clerk/remix

npm i https://pkg.pr.new/@clerk/remix@7778

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@7778

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@7778

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@7778

@clerk/themes

npm i https://pkg.pr.new/@clerk/themes@7778

@clerk/types

npm i https://pkg.pr.new/@clerk/types@7778

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@7778

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@7778

commit: fa30ac4

readonly identificationId: string,
/**
* The unique ID of the user in the provider.
* @deprecated Use providerUserId instead
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants