From 5dd0e08e2c16780c4c90363b2a0993b80dcc58e7 Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Fri, 6 Feb 2026 18:14:56 -0800 Subject: [PATCH 1/2] chore(clerk-js): Show phone number instead of undefined in OAuth consent screen --- .../src/ui/components/OAuthConsent/OAuthConsent.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/clerk-js/src/ui/components/OAuthConsent/OAuthConsent.tsx b/packages/clerk-js/src/ui/components/OAuthConsent/OAuthConsent.tsx index 8555248176f..1ad15bbfaf0 100644 --- a/packages/clerk-js/src/ui/components/OAuthConsent/OAuthConsent.tsx +++ b/packages/clerk-js/src/ui/components/OAuthConsent/OAuthConsent.tsx @@ -25,7 +25,7 @@ export function OAuthConsentInternal() { const { applicationName, logoImageUrl } = useEnvironment().displayConfig; const [isUriModalOpen, setIsUriModalOpen] = useState(false); - const primaryEmailAddress = user?.emailAddresses.find(email => email.id === user.primaryEmailAddress?.id); + const primaryIdentifier = user?.primaryEmailAddress?.emailAddress || user?.primaryPhoneNumber?.phoneNumber; // Filter out offline_access from displayed scopes as it doesn't describe what can be accessed const displayedScopes = (scopes || []).filter(item => item.scope !== OFFLINE_ACCESS_SCOPE); @@ -106,9 +106,7 @@ export function OAuthConsentInternal() { )} - + ({ From 7d5975142a6f9bf4220e4c1bb5e8c1f63465ca4f Mon Sep 17 00:00:00 2001 From: Robert Soriano Date: Fri, 6 Feb 2026 18:17:17 -0800 Subject: [PATCH 2/2] chore: add changeset --- .changeset/fast-paws-double.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fast-paws-double.md diff --git a/.changeset/fast-paws-double.md b/.changeset/fast-paws-double.md new file mode 100644 index 00000000000..43b775ab514 --- /dev/null +++ b/.changeset/fast-paws-double.md @@ -0,0 +1,5 @@ +--- +"@clerk/clerk-js": patch +--- + +Fixed an issue where primary identifier shows undefined when signing in with phone number only