TanStackT
TanStack10mo ago
17 replies
skinny-azure

Authentication using React context/hooks

how do i adapt this https://tanstack.com/router/latest/docs/framework/react/guide/authenticated-routes#authentication-using-react-contexthooks to work with start, specifically with convex auth. i have changed _root.tsx and router.tsx but i have no App.tsx to modify and inject the context.
Authentication is an extremely common requirement for web applications. In this guide, we'll walk through how to use TanStack Router to build protected routes, and how to redirect users to login if th...
Authenticated Routes | TanStack Router React Docs
Was this page helpful?