fix(clerk-js): Show primary email or phone number in OAuth consent screen#7799
fix(clerk-js): Show primary email or phone number in OAuth consent screen#7799wobsoriano wants to merge 3 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: ed13c31 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThis pull request adds a changeset for a patch release and fixes a bug in the OAuthConsent component. The component's primary user identifier logic is updated to use a combined primaryIdentifier that prefers emailAddress and falls back to phoneNumber, replacing the previous emailAddress-only lookup. This modification ensures the OAuth consent screen displays the appropriate user identifier in the header subtitle when using a phone-number-only authentication flow, preventing "undefined" from appearing in the consent message. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
Description
Fixes an issue where the OAuth consent screen displayed "undefined" for users who signed in with only a phone number (no email).
Before: "wants to access App on behalf of undefined"
After: "wants to access App on behalf of +13215551234"
Resolves USER-4496
Core 3 version of #7797
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
Summary by CodeRabbit
Bug Fixes