Official
セキュリティとテスト
Implements secure authentication patterns in React SPA applications using Clerk.
Streamlines the integration of Clerk authentication in React Single Page Applications (SPAs) built with Vite or Create React App. This skill provides instant access to ready-to-use patterns for ClerkProvider setup, core React hooks like useAuth and useUser, protected routing with React Router (v6/v7), and secure API token retrieval, helping developers avoid common pitfalls like race conditions and unhandled authentication states.
主な機能
01Clean usage patterns for core hooks including useAuth, useUser, and useClerk
0255 GitHub stars
03Secure session JWT token retrieval for authenticated backend API calls
04Step-by-step setup for ClerkProvider in Vite and CRA environments
05Common pitfall identification and defensive coding practices for loading states
06Robust React Router v6/v7 protected route components with active state guards
ユースケース
01Securing React Router paths to prevent unauthorized access to dashboard views
02Fetching and attaching Clerk JWT bearer tokens to outbound API requests
03Integrating Clerk authentication into a new or existing Vite-based React SPA