Clerk is the easiest way to add authentication and user management to your chrome extension. To gain a better understanding of the Clerk React SDK and Frontend API, refer to
the Node SDK and Backend API documentation.
Getting Started
To use this package you should first create a Clerk application and retrieve a Publishable Key for you application to be used as environment variables VITE_CLERK_PUBLISHABLE_KEY.
// App.tsx// use same code with the above & add the syncSessionWithTab prop in <ClerkProvider/>// ...
<ClerkProvider
publishableKey={publishableKey}
routerPush={to =>navigate(to)}
routerReplace={to =>navigate(to, { replace: true })}
syncSessionWithTab
>
{/* ... */}
</ClerkProvider>
// ...
Examples of a chrome extension using the @clerk/chrome-extension package for authentication
can be found in our clerk-chrome-extension-starter github repository.
The 2 supported cases (links to different branches of the same repository):
Standalone: The extension is using its own authentication
WebSSO: The extensions shares authentication with a website in the same browser
WebSSO required settings
Extension Manifest (manifest.json)
Permissions
You must enable the following permissions in your manifest.json file:
The npm package @clerk/chrome-extension receives a total of 15,880 weekly downloads. As such, @clerk/chrome-extension popularity was classified as popular.
We found that @clerk/chrome-extension demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Ā It has 7 open source maintainers collaborating on the project.
Package last updated on 25 Jun 2024
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.
A pair of typosquatted Go packages posing as Googleās UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.