Documentation Index
Fetch the complete documentation index at: https://docs.osschat.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
OpenChat uses Better Auth with GitHub OAuth, then syncs users into Convex.
Request Flow
Key Implementation Points
- Client auth state from
auth-client.tsxviauseAuth(). - Server-side auth helpers in
server-auth.ts. - Root route preloads session in
routes/__root.tsx. - Route-level guards in pages such as
routes/c/$chatId.tsxandroutes/settings.tsx.
Required Variables
Security Notes
- Same-origin checks are enforced on sensitive server handlers.
- Convex user identity is validated before database access.
- Rate limits protect auth-adjacent workflow endpoints.