Protect your TanStack React Start app with Clerk.
Guides implementation of Clerk authentication in TanStack React Start apps, including protected routes, authenticated server functions, and loader context.
When to use it
Use when working on TanStack authentication, Clerk server functions, route protection, or TanStack Start middleware.
It changes how the agent implements authentication in a TanStack React Start project, using server authentication checks and route guards.
What you provide
The patterns work in a TanStack Start app using its server functions, Vite plugin, and request middleware.
Configures the client-accessible Clerk publishable key through an environment variable, alongside the server-side secret key.
Configures the Clerk secret key through an environment variable alongside the publishable key, and requires keeping it server-side.
No additional actions listed.