Repository navigation
fix(mosaic): localize passkey cancellation and failure errors - #10519
austincalvelage wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: adb318c The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types 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.
|
@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: |
|
closing in favor of #10518 |
Description
Cancelling the passkey prompt during reverification showed the browser's raw error instead of the localized copy legacy shows. In Chrome:
Reverification now resolves Clerk runtime errors by code through
toLocalizableErroranduseErrorText, like the rest of Mosaic. Server errors keep showing the server's message, as legacy does in en-US.Two passkey failures that previously fell back to "Something went wrong" now get their own copy:
passkey_registration_failed(adding a passkey, the device returns no credential): "Your device couldn't create a passkey. Please try again."passkey_retrieval_failed(reverification, the device returns no credential): "Your device couldn't verify your passkey. Please try again."Legacy shows clerk-js's raw English message for these ("Browser failed to create credential").
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change