Skip to content

fix(ui): move the OAuth client identity notice into the consent warning - #10905

Merged
Zertsov merged 1 commit into
mainfrom
voz/consent-identity-in-warning
Nov 19, 2026
Merged

Zertsov merged 1 commit into
mainfrom
voz/consent-identity-in-warning

Conversation

@Zertsov

@Zertsov Zertsov commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

What

Follow-up to #10895. The OAuth client identity notice moves from a caption under the header into the existing orange consent warning, as the warning's first (bold) sentence:

  • Dynamic client registration: "{{applicationName}} registered itself, so its name and logo are not verified."
  • Client ID metadata document: "Details published by {{metadataHost}}."
  • Pre-registered: no change.

Why

Review feedback on #10895: the separate caption repeated the warning a few lines below it, and the dynamic copy read awkwardly. One warning with the identity sentence first is easier to read before clicking Allow.

Risks

SEV likelihood: very low. Copy and placement only; the same localization keys, data fields and oauthConsentClientIdentity element descriptor stay. oauthConsent.clientIdentity.dynamic gains an {{applicationName}} parameter, so a custom localization that set this key (shipped in #10895, not yet released) gets the new parameter.

Interfaces touched

  • @clerk/ui: <OAuthConsent /> renders the notice inside the warning Alert.
  • @clerk/localizations / @clerk/shared: en-US copy and the dynamic key's type parameter.

Verification

Tests are enough: packages/ui OAuthConsent suite (40/40) with the new strings; tsc -p tsconfig.src.json clean.

Screenshots (clerk-js sandbox, mocked consent response):

preregistered (unchanged) dynamic metadata_document

Checklist

  • pnpm test runs as expected (affected suites).
  • pnpm build runs as expected (affected packages).

Type of change

  • 🐛 Bug fix

✎

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
clerk-js-sandbox Ready Ready Preview Nov 18, 2026 6:41pm UTC
mosaic-docs Error Error Nov 18, 2026 6:41pm UTC
swingset Ready Ready Preview Nov 18, 2026 6:41pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f3edbda

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

This PR includes changesets to release 23 packages
Name Type
@clerk/shared Patch
@clerk/ui Patch
@clerk/localizations Patch
@clerk/astro Patch
@clerk/backend Patch
@clerk/chrome-extension Patch
@clerk/clerk-js Patch
@clerk/electron Patch
@clerk/expo-passkeys Patch
@clerk/expo Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/hono Patch
@clerk/mosaic Patch
@clerk/msw Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/react Patch
@clerk/swingset Patch
@clerk/tanstack-react-start Patch
@clerk/testing Patch
@clerk/vue 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T18:41:27.869008Z f3edbda PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

OAuthConsent now displays the client identity notice inline with the redirect-domain warning. Dynamic registration notices include the application name, while metadata-document notices include the metadata host. The localization text, parameter type, and related tests were updated. A patch changeset covers @clerk/shared, @clerk/ui, and @clerk/localizations.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: wobsoriano, alexcarpenter

Merge Risk: Minimal · up to f3edb

This updates the wording and placement of the client identity notice on the OAuth consent screen. No concrete defect remains, so it is low risk to merge. Custom localizations of the dynamic notice need the new application name parameter.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the OAuth client identity notice moves into the consent warning. It is specific, follows the conventional-commit style, and matches the changeset (OAuthConsent.tsx, cl…
Description check Passed The description states the change: the client identity notice moves from a header caption into the orange consent warning. It gives the new copy for dynamic and metadata-document registrations, the ri…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the OAuth client identity notice moves into the consent warning. It is specific, follows the conventional-commit style, and matches the changeset (OAuthConsent.tsx, clientIdentity.ts, en-US copy, and localization types).

Full details: Description check

Explanation

The description states the change: the client identity notice moves from a header caption into the orange consent warning. It gives the new copy for dynamic and metadata-document registrations, the risks for custom localizations of the dynamic key, and the test and build verification. This matches the raw summary's changes to the localization strings, types, OAuthConsent component, and tests.

Finishing Touches

Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Linked repositories: Some configured repositories could not be included in this review. Cross-repository analysis may be incomplete. Please check linked-repository access and settings.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: clerk/javascript
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 9f40d5c
  • Layers: Repository YAML (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Team
  • Run ID: 01d8e134-6a3a-43fd-ad2a-32eb7bb35ac3
Commits

Reviewing files that changed from the base of the PR and between 9f40d5c and f3edbda.

Files selected for processing: 6

  • .changeset/consent-identity-in-warning.md
  • packages/localizations/src/en-US.ts
  • packages/shared/src/types/localization.ts
  • packages/ui/src/components/OAuthConsent/OAuthConsent.tsx
  • packages/ui/src/components/OAuthConsent/__tests__/OAuthConsent.test.tsx
  • packages/ui/src/components/OAuthConsent/clientIdentity.ts
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. 9 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.

@blacksmith-sh

blacksmith-sh Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Matches Dynamic client: notice moves into warning

The header caption is gone; the warning now opens with the app-named sentence in semibold (600 vs 500 for the rest).

Merge-base

Consent card

This PR f3edbdad

Consent card

Also checked · 3 match

Matches Metadata-document client: notice in warning
Matches Pre-registered client unchanged
Matches Dynamic client with no OAuth app name

Proof on f3edbdad · mocked: Clerk Frontend API consent endpoint (setting OAuth application registration type) · Did Proof get it right? Yes · No

View full Proof report · React 👎 or comment @codesmith dismiss this proof to dismiss

@pkg-pr-new

pkg-pr-new Bot commented Nov 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/electron

npm i https://pkg.pr.new/@clerk/electron@10905

@clerk/electron-passkeys

npm i https://pkg.pr.new/@clerk/electron-passkeys@10905

@clerk/eslint-plugin

npm i https://pkg.pr.new/@clerk/eslint-plugin@10905

@clerk/expo

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

@clerk/expo-biometrics

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

@clerk/expo-google-signin

npm i https://pkg.pr.new/@clerk/expo-google-signin@10905

@clerk/expo-native-components

npm i https://pkg.pr.new/@clerk/expo-native-components@10905

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@10905

@clerk/localizations

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

@clerk/mosaic

npm i https://pkg.pr.new/@clerk/mosaic@10905

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/react

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

@clerk/react-router

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

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@10905

@clerk/upgrade

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

@clerk/vue

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

commit: f3edbda

@Zertsov
Zertsov merged commit 0a49e7e into main Nov 19, 2026
59 of 61 checks passed
@Zertsov
Zertsov deleted the voz/consent-identity-in-warning branch November 19, 2026 02:21

This branch was successfully deployed

2 active deployments
Preview – swingset — f3edbdad Deployed Nov 18, 2026 by vercel[bot]
Preview – clerk-js-sandbox — f3edbdad Deployed Nov 18, 2026 by vercel[bot]
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.

2 participants