@clerk/clerk-js
6.44.0 · 17 Nov 2026MIT1.5M / weekRepositoryHomepagenpmAtom feed
6.46.3 is the newest release of 6.x.
In short
1 fixed
Security
1 advisory affects 6.7.4; 6.7.5 fixes them
- HighClerk has an authorization bypass when combining organization, billing, or reverification checksGHSA-w24r-5266-9c3c · 30 Apr 2026Fixed in 6.7.5
Release note
Patch Changes
clerk-js: Prevent background token refresh from destroying sessions on mobile
On iOS, background thread throttling can starve the JS event loop for hours (e.g., overnight audio apps). When the SDK's background refresh timer eventually fires with stale credentials, the resulting 401 would trigger
handleUnauthenticated()and destroy the session even though it's still valid on the server.Adds an early return in
#refreshTokenInBackground(), gated to headless/mobile runtimes only (Expo setsruntimeEnvironmentto'headless'). If the token has already expired when the refresh timer fires, bail out instead of sending a request with stale credentials. The next foregroundgetToken()call handles token acquisition through the normal path with proper retry logic.
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.