home/categories/security/tanstack-router-packages-router-core-skills-router-core-auth-and-guards-skill-md
securitytesting-security

router-coreauth-and-guards

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.

TanStack
maintainer
TanStack
更新于 3/16/2026
星标
14113
分支
1630
quick start

Installation and usage

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.

安装
$ install --globalskills.sh
使用

安装后,您可以通过在终端运行以下命令来使用此技能:

skills use router-coreauth-and-guards