fix(ui): continue to the identity provider after a challenge - #9620
fix(ui): continue to the identity provider after a challenge#9620zourzouvillys wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 9252160 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 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 |
fc71f5d to
ba6c5ed
Compare
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-google-signin
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@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: |
API Changes Report
Summary
No API Changes DetectedAll packages have stable APIs with no detected changes. Report generated by Break Check Last ran on |
A sign-in whose only first factor is an enterprise connection has no factor to render, so resuming it into the factor-one card left the user on alternative methods with no way to reach their provider. The rule for when a sign-in hands off to a connection now lives in one place, and the resume follows it as the start page already did. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
ba6c5ed to
9252160
Compare
| function shouldHandOffToEnterpriseConnection(signIn: SignInResource): boolean { | ||
| return ( | ||
| hasOnlyEnterpriseSSOFirstFactors(signIn) && !hasMultipleEnterpriseConnections(signIn.supportedFirstFactors ?? null) | ||
| ); | ||
| } |
There was a problem hiding this comment.
What's the intended behavior here? If the user has multiple factors, picks one enterprise SSO one, gets challenged and end up here to determine whether to continue, shouldn't we continue that specific factor which they had already chosen?
Description
Stacked on #9619 — review the delta only; that one merges first.
A sign-in whose only supported first factor is an enterprise connection has no first factor to render. The start page knows this and hands off to the identity provider instead of routing to the factor-one card.
Resuming a sign-in after a verification challenge did not know it, and routed to factor-one regardless. With nothing there to render, the card falls through to "Use another method", which lists social providers only — so the user is stranded with no way to reach their provider and no way back. It affects every entry point that resumes through this path, including an organization invitation ticket.
The rule for when a sign-in hands off to a connection now lives in one place, and the resume follows it as the start page already did.
Effects and risks
shared.tsinto a module neither file imports, so the resume can use them without a cycle.hasMultipleEnterpriseConnectionsis re-exported from its old path, so existing importers are untouched.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change