start-auth
Use when adding auth to a TanStack Start app — route protection, server-function authorization, sessions, CSRF. Do NOT use for generic route guards.
Target: Target not categorized. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original English text
Topics in the source
- TanStack Start — Authentication
- CRITICAL GOTCHA (READ BEFORE ANYTHING)
- Agent Workflow (MANDATORY)
- Overview
- Critical Rules
- Auth Approaches (official)
- Reference Guide
- Concepts
Covers authentication and authorization in TanStack Start: protecting routes with beforeLoad + redirect, authorizing server functions via middleware (the actual security boundary), session/cookie handling (useSession, getRequest, Host- cookies), CSRF protection (createCsrfMiddleware + Origin checks), and wiring managed providers like Auth.js, Better Auth, Clerk, or WorkOS. The central gotcha this skill exists to prevent: beforeLoad + redirect() protects the UI only — server functions and server routes are independently reachable API endpoints, so authorization MUST be enforced inside the server-function handler or its middleware, never assumed from a route guard. Ships DIY server-primitive templates (portable, no vendor lock-in) for an authed layout + authMiddleware, session/CSRF helpers, and OAuth authorization-code flow with PKCE. For a managed auth library, install it and follow its own current docs or the dedicated better-auth skill rather than assuming a Start adapter API. Do NOT use this skill for generic route guards unrelated to auth (react-tanstack-router) or non-Start Node auth setups. beforeLoad + redirect() protects the UI, NOT your data. Server functions and server rou
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- Fusengine/claude-plugins
- Source file
- plugins/tanstack-start-expert/skills/start-auth/SKILL.md
- Fixed revision
- b9f82810cf3b5e3c4350332ac3ef618d60163cc0
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: Fusengine/claude-plugins · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-11T11:01:45.966Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.