fix(ui): Add Forgot password? option to the SignInStart screen#8733
fix(ui): Add Forgot password? option to the SignInStart screen#8733Ephem wants to merge 3 commits into
Conversation
🦋 Changeset detectedLatest commit: 0dae904 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.
|
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/expo
@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: |
📝 WalkthroughWalkthroughThis PR implements a "Forgot password?" action on the sign-in start page to improve account recovery under strict user enumeration protection. The changes introduce a new URL parameter constant ( Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 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 |
API Changes Report
Summary
@clerk/sharedVersion: 4.15.0 → 4.14.0 Subpath
|
Description
When strict user enumeration protection is enabled, we use a combined error for missing identifier and password. When someone uses the hidden instant password field on
SignInStart(through password managers), but that password is wrong, this means they stay on theSignInStartscreen and see the error there, instead of being redirected to/factor-onewhich is the normal path.SignInStarthas not previously had the "Forgot password?" option, so the only way to recover has been to remove the password and click continue, which is not great UX.This PR adds a "Forgot password?" to the password field on
SignInStart. It makes this happen by retrying the signIn create with just the identifier first to set things up, and then navigating to the/factor-onescreen with a query param (__clerk_reset_password=true, gets reset on exit)Trying to click forgot password when identifier field is empty will result in the same validation error as when clicking continue.
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change