@clerk/shared
4.45.1 · 14 Nov 2026MIT11.8M / weekRepositorynpmAtom feed
4.48.3 is the newest release of 4.x.
In short
2 new6 fixed
Release note
Minor Changes
Add internal OAuth transport support for native desktop SDK wrappers to run Clerk's prebuilt OAuth flows through a system browser.
Patch Changes
Align the
HeadlessBrowserClerk.load()parameter type with the runtime behavior by accepting the fullClerkOptions, includingisSatellite. The clerk-js implementation has always accepted and usedisSatellitefromload()options — it's the only way to configure a satellite app when using@clerk/clerk-jsdirectly — but the type previously excluded it, producing a contradictory generated API reference and type errors for direct consumers.Add an overview to the organization profile Security page. The page now lands on a summary of the SSO connection — a status badge (Unconfigured, In Progress, Active, Inactive), the configuration details framed in a card (provider, domain, sign-on URL, issuer, certificate), and an actions menu with Edit, Activate / Deactivate, and Remove — and switches into the existing configuration flow on Start, Continue, or Edit.
Rename the
<OrganizationProfile />SSO page to "Security". The navbar entry is now labeled "Security" with a shield icon, its route path changed fromorganization-self-serve-ssotoorganization-security, and a neworganizationProfile.navbar.securitylocalization key replacesorganizationProfile.navbar.selfServeSSO.Ship a self-contained
CookieAttributesinterface from@clerk/shared/cookieand use it increateCookieHandler'sset/removesignatures. The published declarations previously referencedCookies.CookieAttributesfrom js-cookie, which consumers could never resolve (the import was dropped from the declaration output and js-cookie ships no types), causing TS2503 errors underskipLibCheck: falseand silently degrading the option types toanyotherwise.Resolve the browser connectivity heuristics (
isValidBrowser,isBrowserOnline, and thereforeisValidBrowserOnline) from the worker'snavigatorwhenwindowis unavailable but the code runs inside aWorkerGlobalScope. In a Web/Service Worker — most notably an MV3 extension background service worker (where@clerk/chrome-extensionloads the background client) — there is nowindow, so these checks previously always reported "invalid/offline". That causedgetToken()failures to be re-thrown as a misleadingclerk_offlineerror and capped network retries lower than intended. The checks now read real connectivity from the worker'snavigator. Server-side rendering continues to reportfalse(the fallback requires a real worker scope, so a bareglobalThis.navigatorsuch as the one modern Node exposes is not treated as a browser), and behavior in standard browsers and React Native is unchanged.Exclude self-identified server runtimes (
Cloudflare-Workers,Node.js,Deno,Bunuser agents) from the worker-scopenavigatorfallback used byisValidBrowser,isBrowserOnline, andisValidBrowserOnline. Today Cloudflare's workerd is excluded only because itsselfdoes not satisfyinstanceof WorkerGlobalScope; this guard keeps the checks returningfalseon server-side worker runtimes even if that implementation detail changes, while real browser web/service workers (such as MV3 extension background workers) are unaffected.Clarify the
isSatelliteJSDoc to note it must be set inload(), unlikedomain, which is set in theClerkconstructor. This corrects the generated API reference for direct@clerk/clerk-jsand<script>consumers, whereload()is the only way to configure a satellite app.
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.