Route protection with beforeLoad, redirect()/throw redirect(), isRedirect helper, authenticated layout routes (_authenticated), non-redirect auth (inline login), RBAC with roles and permissions, auth provider integration (Auth0, Clerk, Supabase), router context for auth state.
$npx -y skills add tanstack/router --skill auth-and-guardsInstalls into the current project.
Run `npx skills use "https://github.com/tanstack/router" --skill "tanstack/router/auth-and-guards"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/tanstack/router" that are relevant to the current task. Run `npx skills add "https://github.com/tanstack/router"` and select the relevant skills, then follow their instructions.