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 8,846 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 6 open source maintainers collaborating on the project.
Package last updated on 21 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 Threat Research maps a rare inside look at OtterCookie’s npm-Vercel-GitHub chain, adding 197 malicious packages and evidence of North Korean operators.
Socket researchers identified a malicious Chrome extension that manipulates Raydium swaps to inject an undisclosed SOL transfer, quietly routing fees to an attacker wallet.