Official
セキュリティとテスト
Integrates Clerk authentication and session management into React Router v7 and v8 applications with production-ready patterns.
Enables seamless integration of Clerk authentication within React Router v7 and v8 environments, providing robust patterns for middleware, loaders, and actions. It helps developers correctly configure server-side rendering (SSR), set up protected routes, handle organization switching, and resolve common development pitfalls—such as Vite's duplicate Router context issues in React Router v8—ensuring a secure and reliable user authentication flow.
主な機能
01Standardized patterns for route protection and conditional redirects
02Comprehensive middleware configurations for React Router v7 and v8 applications
03Actionable troubleshooting guides for Vite SSR module duplication and routing context errors
04Step-by-step setup for SSR user data integration and ClerkProvider state hydration
05Secure server-side authentication checks in loaders and actions using getAuth
0655 GitHub stars
ユースケース
01Resolving the 'useNavigate() may be used only in the context of a Router' error in React Router v8
02Securing React Router v7/v8 loaders and actions to prevent unauthorized data access
03Implementing multi-tenant B2B application flows with Clerk's Organization Switcher