feat: auth, persistence, and AI integration
- Cookie-based auth via backend proxy (httpOnly JWTs) - Supabase Postgres persistence for sessions/messages/profiles + RLS - Fix cross-user session leak (token cache keyed by full token, not 50-char prefix) - Fix missing table grants (42501) via migration; auto-provision profiles on user creation - Chat validation, ownership checks, rate limiting, /api/chat/sessions route ordering - Frontend auth-state reset + credentials include - OpenRouter AI provider (OpenAI-compatible base URL, reasoning disabled) - Tests: chatValidation, appState
This commit is contained in:
@@ -12,6 +12,14 @@ dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Supabase self-hosted
|
||||
docker-compose.yml
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
volumes/
|
||||
logs/
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
|
||||
Reference in New Issue
Block a user