gammanexus/server
isnowglobal-admin 9b21b40da8 release: alpha2.0 — session persistence, Tanuki stability, login flow
Auth & Session:
- Add credentials: include to all frontend fetch calls (queryClient,
  auth-context, tanuki-trades, symbol-selector, settings, verify)
- Redis-backed session store with connect-redis, 7-day cookie expiry,
  sameSite=lax, httpOnly=true
- Add app.set('trust proxy', 1) so Express honors X-Forwarded-Proto from
  nginx — fixes secure cookies never being sent over HTTPS
- Cookie secure flag also checks APP_URL for reverse proxy deployments

Login Flow:
- Fix post-login redirect race condition: use full page reload
  (window.location.href) instead of hash navigation so auth cookie is
  established before ProtectedRoute checks session
- Disable SymbolSelector query when not authenticated to prevent blocking
  fetches on login page
- SymbolSelector returns null when not authenticated — no UI rendered

Tanuki Trades:
- Add ErrorBoundary component to isolate Tanuki page crashes
- Use unique queryKey ['tanuki-tickers'] to prevent React Query cache
  collision with symbol selector
- Defensive query syntax with async/await for error isolation

Testing:
- Verified login → redirect → refresh → session persists (no 401)
- Verified Tanuki page no longer crashes the entire app
- Verified /api/auth/me returns user data across requests with cookie
2026-07-01 14:53:24 -04:00
..
authRoutes.ts feat: Brevo SMTP email config, fire-and-forget verification emails 2026-06-30 01:45:20 -04:00
db.ts fix: Use raw pool client for DDL to avoid Drizzle prepared statement issue with CREATE IF NOT EXISTS 2026-06-30 10:11:40 -04:00
email.ts release: alpha release candidate 2026-06-22 21:40:10 -04:00
index.ts release: alpha2.0 — session persistence, Tanuki stability, login flow 2026-07-01 14:53:24 -04:00
marketData.ts feat: Tanuki gamma levels (ORATS-backed), custom ticker CRUD, futures levels 2026-06-29 22:53:35 -04:00
middleware.ts release: alpha release candidate 2026-06-22 21:40:10 -04:00
oratsClient.ts feat: Tanuki gamma levels (ORATS-backed), custom ticker CRUD, futures levels 2026-06-29 22:53:35 -04:00
routes.ts release: alpha2.0 — session persistence, Tanuki stability, login flow 2026-07-01 14:53:24 -04:00
security.ts Security hardening: rate limit whitelist for home subnet, relaxed dev limits, ORATS fixes 2026-06-13 14:21:27 -04:00
static.ts Fix: Remove import.meta from static.ts for CJS compatibility 2026-06-13 19:30:55 -04:00
tanukiClient.ts feat: Tanuki gamma levels (ORATS-backed), custom ticker CRUD, futures levels 2026-06-29 22:53:35 -04:00
vite.ts GammaDesk initial commit - Options Gamma Analytics platform 2026-05-21 01:41:11 -04:00