Open History to see the last commit
1# TanStack Start - Basic Auth Example
2β
3A TanStack Start example demonstrating authentication patterns and protected routes.
4β
5- [TanStack Router Docs](https://tanstack.com/router)
6β
7## Start a new project based on this example
8β
9To start a new project based on this example, run:
10β
11```sh
12npx gitpick TanStack/router/tree/main/examples/react/start-basic-auth start-basic-auth
13```
14β
15## Getting Started
16β
17From your terminal:
18β
19```sh
20pnpm install
21pnpm dev
22```
23β
24This starts your app in development mode, rebuilding assets on file changes.
25β
26## Build
27β
28To build the app for production:
29β
30```sh
31pnpm build
32```
33β
34## Authentication Features
35β
36This example demonstrates:
37β
38- User authentication flow
39- Protected routes
40- Login/logout functionality
41- Redirect after authentication