Chrome Extension SDK 2.0
- Category
- SDK
- Published
We've released version 2.0 of the Chrome Extension SDK. Learn about the SDK's new features and get started building your Chrome Extension today.
We're excited to release version 2.0 of the Chrome Extension SDK. Version 2.0 comes with the new createClerkClient()
helper for background service workers, improved support for syncing auth state with your web application and detailed documentation for the SDK.
Take a look at our Chrome Extension Quickstart if you're just getting started, or read over the Chrome Extension documentation to learn about all of the features.
Our Chrome Extension Quickstart repo and Chrome Extension Demo repo are a great reference or starting point for a project.
Introducing createClerkClient()
for Service Workers
Chrome Extensions pose a unique challenge for developers using Clerk. When the popup or side panel is closed, the Clerk session cookie will become stale. The createClerkClient()
function is specifically designed to allow extension developers to refresh the user's session, obtain a valid token or other auth, and retrieve user data.
You can now send a message from a content script to the background service worker and get auth status or a token for the user.
Breaking Changes
syncSessionWithTab
has been removed and replaced withsyncHost
. Changelog Sync Host Guide- The
storage
host permission is now required. Changelog