# AT Protocol OAuth Template ### for TanStack Start ## Getting Started 1. Create and copy a random string; you can use the command below: ``` openssl rand -base64 32 ``` 2. Update `.env` with `SESSION_PASSWORD` using the random string ``` SESSION_PASSWORD="random string" ``` 3. Run the web application ``` pnpm run dev ``` ## Notes - In `atproto.server.ts`, the state and session stores for authentication data are in-memory using maps. For production, update the variables and respective classes to use a persistent database, e.g. PostgreSQL. ## Packages - [`TanStack Start`](https://tanstack.com/start) - Web application framework _Source hosted on [Tangled](https://tangled.org/zeu.dev/atproto-oauth-tanstack-start)_