@clerk/chrome-extension
3.1.113 · 20 Nov 2026MIT129.4k / weekRepositoryHomepagenpmAtom feed
2.9.26 is the newest release of 2.x.
In short
2 breaking1 changed3 internal
- Breaking
Consume packages with remotely hosted code removed as required by Manifest v3.
- Breaking
Security
1 advisory affects 2.0.0; 2.9.15 fixes them
- HighClerk has an authorization bypass when combining organization, billing, or reverification checksGHSA-w24r-5266-9c3c · 30 Apr 2026Fixed in 2.9.15
Release note
Major Changes
- Breaking
Consume packages with remotely hosted code removed as required by Manifest v3.
- Breaking
Permission Updates (BREAKING)
The
storageentry inhost_permissionsis now required for all extensions.
While it's likely that this is already enabled in your extension, this change is to ensure that Clerk can store the necessary data for the extension to function properly.How to Update: Add the following to your
manifest.jsonfile:{ "host_permissions": ["storage"] }
Introducing syncHost (BREAKING)
In an effort to make the handling of sync hosts more deterministic, we have introduced a new parameter `syncHost` to `<ClerkProvider>` **How to Update:** Replace `syncSessionWithTab` with `syncHost` in the `<ClerkProvider>` component and set `syncHost` to the host that you intend to synchronize with.
Service Workers createClerkClient
We've introduced a new method `createClerkClient` to handle background tasks in your extension!
```ts
import { createClerkClient } from '@clerk/chrome-extension/background';
// Create a new Clerk instance and get a fresh token for the user
async function getToken() {
const clerk = await createClerkClient({
publishableKey: process.env.PLASMO_PUBLIC_CLERK_PUBLISHABLE_KEY,
});
return await clerk.session?.getToken();
}
// Create a listener to listen for messages from content scripts
// NOTE: A runtime listener cannot be async.
// It must return true, in order to keep the connection open and send a response later.
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
// You can use the token in the listener to perform actions on behalf of the user
// OR send the token back to the content script
getToken().then(token => sendResponse({ token }));
return true;
});
```Patch Changes
Introduce the
useReverification()hook that handles the session reverification flow:Replaces
__experimental_useReverificationwithuseReverification
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.