Clerk Chrome Extension Patterns

•
55
•

Provides standardized implementation patterns, security configurations, and best practices for integrating Clerk authentication into Chrome Extensions.

This Claude Code skill equips developers with the architecture patterns and critical rules required to seamlessly integrate Clerk authentication into Chrome Extensions. It covers popup and side panel setups, web app auth synchronization via syncHost, headless background service workers with createClerkClient, content script message passing, and configuring a stable CRX ID to prevent broken origin redirects. This skill ensures developers avoid common pitfalls like broken OAuth in popups and expiring background tokens, leading to robust, secure extension environments.

主な機能

01Web application authentication synchronization utilizing the syncHost pattern
0255 GitHub stars
03Background service worker integration using createClerkClient with token refreshing
04Procedures to pin a stable CRX ID to prevent breaking allowed origins during rebuilds
05Step-by-step setup for Plasmo-based and vanilla JS Chrome Extensions
06Secure token persistence configuration via chrome.storage.local caching

ユースケース

01Implementing background API requests from a headless service worker using secure JWTs
02Syncing extension auth state seamlessly with an existing SaaS web application
03Building a popup or sidepanel extension that requires user sign-in and sign-up flows