Skip to content

Conversation

@jfoshee
Copy link
Contributor

@jfoshee jfoshee commented Jan 14, 2026

Core-2 PR for #7583

Description

Adds an optional idToken member to the OauthAccessToken object returned by getUserOauthAccessToken. This idToken represents the ID token retrieved from OIDC providers, and is only present for OIDC-compliant OAuth 2.0 providers when available.

This change involves:

  • Adding id_token?: string to the OauthAccessTokenJSON interface in JSON.ts.
  • Adding idToken?: string to the OauthAccessToken class constructor and updating the fromJSON method in OauthAccessToken.ts.
  • Adding JSDoc comments for the new idToken property.

API Changes

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:

Open in Cursor Open in Web

Summary by CodeRabbit

  • New Features
    • OAuth access tokens now optionally include ID tokens from OpenID Connect-compliant providers. When available from your OAuth provider, the ID token delivers additional user identity information for enhanced security and user verification. This is only included when your provider supports OpenID Connect and returns an ID token in the response.

✏️ Tip: You can customize this high-level summary in your review settings.

@changeset-bot
Copy link

changeset-bot bot commented Jan 14, 2026

🦋 Changeset detected

Latest commit: 9c680c6

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

This PR includes changesets to release 11 packages
Name Type
@clerk/backend 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 Jan 14, 2026

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

Project Deployment Review Updated (UTC)
clerk-js-sandbox Ready Ready Preview, Comment Jan 14, 2026 6:13pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 14, 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.


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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 14, 2026

Open in StackBlitz

@clerk/agent-toolkit

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

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/dev-cli

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

@clerk/elements

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

@clerk/clerk-expo

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

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/localizations

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

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/clerk-react

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

@clerk/react-router

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

@clerk/remix

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

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/themes

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

@clerk/types

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

@clerk/upgrade

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

@clerk/vue

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

commit: 9c680c6

@jfoshee jfoshee merged commit c3ff1f8 into release/core-2 Jan 14, 2026
45 checks passed
@jfoshee jfoshee deleted the cursor/oauth-idtoken-member-core2 branch January 14, 2026 18:33
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.

4 participants