Official
セキュリティとテスト
Implements secure Clerk authentication patterns in TanStack React Start applications using route guards, server functions, and Vinxi middleware.
Enhance your Claude Code environment with specialized patterns for integrating Clerk authentication into TanStack React Start applications. This skill provides structured guidance on securing routes via beforeLoad guards, executing authenticated server operations with createServerFn, passing auth context to loaders, and setting up Vinxi server middleware correctly. It helps developers avoid common routing and authentication pitfalls in modern full-stack React architectures.
主な機能
01Injects authenticated user context cleanly into TanStack loaders.
02Implements route protection using beforeLoad guards and redirect throws.
03Provides automated troubleshooting for common client-server auth sync issues.
04Secures backend operations within TanStack Start's createServerFn using auth().
0555 GitHub stars
06Configures Vinxi server entry points with clerkMiddleware.
ユースケース
01Configuring root-level ClerkProvider wrapping for hydration-safe auth states.
02Accessing the current user's session in server functions and server-side loaders.
03Securing dashboard routes and nested layouts in TanStack React Start apps.