Repository navigation
feat(shared): expose lockoutExpiresInSeconds on user_locked error meta - #11109
Conversation
🦋 Changeset detectedLatest commit: cfc0293 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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
@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
@clerk/sharedCurrent version: 4.52.0 Subpath
|


Description
A custom sign-in flow can't tell a locked user how long to wait: the Frontend API returns
meta.lockout_expires_in_secondsonuser_lockederrors, butClerkAPIErrordrops it.This passes the field through as
meta.lockoutExpiresInSeconds, and back out througherrorToJSON.Looking for a review of the field name and the JSDoc wording on the type.
Until now the only way to show the wait was to render
longMessage, which is English only and rounded to a single unit ("4 minutes", "less than 1 minute"). The iOS and Android SDKs already expose this value.The field is the whole number of seconds remaining when the API returned the error. It is
undefinedwhen the lockout has no expiry.Released as a minor for
@clerk/shared, the same as the earliermeta.providerErrorandmeta.remainingAttemptsadditions.Not done here: the custom flows error handling guide still says the Frontend SDK does not expose this field. That page needs a follow-up once this is released.
Fixes #10026
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change