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 REACT_APP_CLERK_PUBLISHABLE_KEY.
// App.tsx// use same code with the above & add the syncSessionWithTab prop in <ClerkProvider/>// ...
<ClerkProvider
publishableKey={publishableKey}
navigate={to =>navigate(to)}
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
The Enable URL-based session syncing should be DISABLED from the Clerk Dashboard > Setting for a development instance to support @clerk/chrome-extension functionality.
Deploy to Production
Setting the allowed_origins (check Clerk Settings) is REQUIRED for both Development and Production instances when using the WebSSO use case.
The npm package @clerk/chrome-extension receives a total of 3,467 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 8 open source maintainers collaborating on the project.
Package last updated on 27 Sep 2023
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.
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.