Repository navigation
Conversation
…en sign-in requires it The password step of <SignIn /> and of the reverification modal now recognises password_reset_required. Instead of showing the API message on the password card, it opens a "Password reset required" screen that leads with "Reset your password" and lists the other methods. An autofilled password on the first sign-in step goes to the password step, as form_password_pwned already does.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 003b010 The changes in this PR will be included in the next version bump. This PR includes changesets to release 24 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 |
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait...
|
@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: |
The card that a navigation leads to read its error from window.Clerk, so an error handed over between steps was lost when Clerk came from the npm package and window.Clerk was not set. This included the reset-required screen after an autofilled password on the first sign-in step. Cards now read the error from the Clerk instance they render with, which is where __internal_navigateWithError already stores it. The first sign-in step and the SSO callback hand errors over the same way.
…k instance" This reverts commit fe4d5f5.
|
API Changes Report
Summary
@clerk/sharedCurrent version: 4.48.3 Subpath
|
# Conflicts: # packages/ui/src/components/SignIn/SignInFactorOne.tsx



Description
When a password attempt returns
password_reset_required,<SignIn />and the reverification modal now take the user to a "Password reset required" screen. Until now, the password card showed the API's English message and left the user to find "Forgot password?" on their own.password_reset_required, the sign-in restarts with the identifier only and opens the same screen, with the message, so the user does not enter the password again. The error reaches the password step throughwindow.Clerk, as other errors handed between steps do. Other password errors there still continue on the password step, as before.New localization keys:
signIn.passwordResetRequired.title,reverification.passwordResetRequired.title,reverification.passwordResetRequired.subtitle__saveNewPasswordandunstable__errors.password_reset_required. Every locale has translations for them.@clerk/shared/erroraddsisPasswordResetRequiredError, marked@internallikeisPasswordPwnedErrorandisPasswordCompromisedError.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change