Repository navigation
Conversation
…tokens Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🦋 Changeset detectedLatest commit: db4c1a9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: db4c1a92ee
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| /** The default organization of the grant. */ | ||
| readonly orgId?: string, | ||
| /** The organizations the user granted in one consent, default first. Present only when two or more were granted. */ |
There was a problem hiding this comment.
Remove the newly added code comments
The new JSDoc comments for orgId and grantedOrgs violate the root AGENTS.md rule, which states “do not write any code comments” unless specifically requested by the user. These additions do not correct existing comments made inaccurate by changed behavior. Remove both new comments to comply with the repository's explicit convention.
AGENTS.md reference: AGENTS.md:L9-L9
Useful? React with 👍 / 👎.
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-native-components
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
API Changes Report
Summary
No API Changes DetectedAll packages have stable APIs with no detected changes. Report generated by Break Check Last ran on |


Description
Verified OAuth access tokens now expose the organizations of the grant.
A Clerk OAuth access token can carry
org_id, the default organization of the grant, andgranted_orgs, the organizations the user granted when one consent covers two or more.@clerk/backendverified these tokens but dropped both values, so a server had to decode the token by hand to read them.IdPOAuthAccessTokengainsorgIdandgrantedOrgs({ id, name }[]), read from the JWT payload and from the Backend API verify response for opaque tokens. Both areundefinedwhen the token has none.oauth_tokenauth object gainsorgIdandgrantedOrgs. Both arenullwhen the token has none, andnullon the unauthenticated object.granted_orgsis all or nothing: one malformed entry drops the whole list, so a partial list is never exposed. Extra keys in an entry are dropped.grantedOrgsrecords what the user chose at consent time. It carries no role, so a server that authorizes by organization still checks the user's current membership.To test:
pnpm testinpackages/backend. The new cases are insrc/tokens/__tests__/verify.test.ts("OAuth token organization claims", for opaque and JWT tokens) andsrc/tokens/__tests__/authObjects.test.ts.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change