@clerk/shared
4.45.1 · 14 Nov 2026MIT11.8M / weekRepositorynpmAtom feed
Upgrading @clerk/shared From 4.29.0 to 4.48.3
34 releases in betweenevery note read
- 2
- changes to make
- 0
- advisories fixed
- 29
- new
- 38
- fixes
Before you upgrade
Tick each one off as you go- Deprecated4.39.0
- Deprecated4.37.0
Release by release
- Fixed
Move the code behind
useSignIn(),useSignUp()anduseWaitlist()that listens for sign-in, sign-up and waitlist updates into@clerk/shared, so@clerk/mosaiccan use it too. No behavior change. - Fixed
Move the rules that decide which fields the
<SignUp />form shows and requires, and the parser for blocked-request errors, into@clerk/sharedso@clerk/mosaiccan use them too. No behavior change. - Fixed
Fix the internal sign-up step helper used by
@clerk/mosaicso it verifies the email and phone before asking for missing fields, the same order<SignUp />follows.<SignUp />is unaffected.
- Fixed
- Fixed
Request Frontend API version
2026-11-18, whereGETresponses only include the client when clerk-js asks for it. - Fixed
Localize the screen reader label for the list of accounts in
<OrganizationSwitcher />with the neworganizationSwitcher.membershipListLabelandorganizationSwitcher.accountListLabelkeys.
- Fixed
- Fixed
Move the OAuth client identity notice on
<OAuthConsent />into the existing consent warning instead of a separate line under the header. A client that registered itself through Dynamic Client Registration now reads "{{applicationName}} registered itself, so its name and logo are not verified.", and a client identified by a Client ID Metadata Document reads "Details published by {{metadataHost}}.".
- Fixed
- New
Show how an OAuth client's identity was established on
<OAuthConsent />. Clients that registered themselves through Dynamic Client Registration get an "Unverified app" notice, and clients identified by a Client ID Metadata Document show the host that publishes their details.OAuthConsentInfogains optionalclientRegistrationandclientMetadataHostfields, and the notice can be styled with the newoauthConsentClientIdentityappearance element.
- New
- New
Add
clientTrustStatetoSignInFuture, so custom sign-in flows can read whether Clerk trusts the user's device ('new','known', or'pending'). With the Device Trust Status update, Clerk returns it once the first factor, such as the password, is verified, and it'sundefinedbefore then. Without that update, Clerk returns it on every response. It'sundefinedwhen Device Trust is off. - New
Add ChatGPT as a supported OAuth provider strategy for instances where Sign in with ChatGPT is enabled.
- New
- New
Let users whose password was found in a data breach pass reverification by resetting it. Until now the reverification modal only showed the breached-password error, so these users couldn't make any change that needs reverification, including changing that password. The modal now offers "Reset your password": the user sets a new password and enters a code sent to their email or phone, as in sign-in. Their other verification methods stay available.
- New
Add localization keys for resetting a breached or compromised password from the reverification modal:
reverification.passwordPwned,reverification.passwordCompromised,reverification.resetPassword,reverification.resetPasswordAlternativeMethodsandreverification.resetPasswordCode.
- New
- Fixed
Modify the polling interval for SSO domain verification on development instances.
- Fixed
Fix an issue where the self-serve SSO setup wizard could return to the domain step after creating a connection.
- Fixed
- New
Add a
preferImmediatelyAvailableCredentialsoption tosignIn.authenticateWithPasskey()andsignIn.passkey(). With@clerk/expo-passkeyson iOS 16+ and Android, it limits sign-in to passkeys already on the device, and the request fails without showing the "use a passkey from another device" sheet when there are none. This lets an app prompt for a passkey automatically when its sign-in screen opens. Browsers ignore it. - New
Expose
meta.providerErroronClerkAPIError. WhengetUserOauthAccessToken()fails withoauth_token_retrieval_error, it holds the OAuth provider's error, or the OAuth setting to fix when Clerk could not authenticate to the provider. - Fixed
Show "Too many requests. Please try again in a bit." for both
too_many_requestsandsignup_rate_limit_exceedederrors in the prebuilt components. Replace "The External Account was not found." with "Account not found. Please sign up or try signing in to a different account." - Fixed
Fix sign-ups failing with "There is no account to transfer" when
handleRedirectCallback()was called again while an earlier call was still running, for example because<SignIn />remounted during the OAuth callback. Calls made while one is running now share its result instead of starting a second transfer.
- New
2 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.