Repository navigation
fix(ui): resume existing session when passkey sign-in returns session_exists - #10841
Conversation
…_exists The email/password form and the social buttons in <SignIn /> recover from `session_exists` by activating `client.lastActiveSessionId`. The passkey handler did not, so a passkey sign-in after a completed sign-in whose redirect never landed showed "You're already signed in." and left the user stuck on the sign-in page. Add the same recovery to useHandleAuthenticateWithPasskey. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 28200eb 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 |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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
In
<SignIn />, the email/password form (SignInStart.attemptToRecoverFromSignInError) and the social buttons (SignInSocialButtons.handleError) both recover from asession_existserror by activatingclient.lastActiveSessionId. The passkey handler (useHandleAuthenticateWithPasskey) did not. It passed the error tohandleError, so the card showed "You're already signed in." and the user was stuck on the sign-in page.This happens when an earlier sign-in completed but its redirect never landed (for example after a dropped connection), and the user then clicks "Use passkey instead" on the same page. A customer reported it and was working around it with
__internal_onAfterResponse.This PR adds the same
session_exists→setActive({ session: client.lastActiveSessionId })recovery to the passkey handler.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
🤖 Generated with Claude Code