Commit Graph

6 Commits

Author SHA1 Message Date
cae7cbb98f Remove social auth and stabilize email/password flow 2026-02-21 23:16:16 -05:00
6e299b1e1f Fix frontend Docker build and session ID typing 2026-02-20 22:02:48 -05:00
Francesco
7df3d54103 fix: Update Tailwind CSS and Better Auth imports for frontend build
- Update Tailwind CSS v4 PostCSS configuration
- Fix Better Auth React imports (better-auth/react)
- Update all page components to use Better Auth useSession
- Add @tailwindcss/postcss to dependencies
- Remove SessionProvider from layout (Better Auth handles sessions)
- Fix globals.css for Tailwind v4 compatibility
- Update page components with correct session state checking

This addresses build failures related to:
- Tailwind CSS v4 PostCSS plugin compatibility
- Better Auth React client import paths
- NextAuth v5 to Better Auth migration
2026-02-21 02:09:11 +00:00
Francesco
f8356e0945 feat: Migrate from NextAuth to Better Auth
Backend changes:
- Add better-auth and pg packages
- Create Better Auth instance with PostgreSQL adapter
- Add Better Auth route handler at /api/auth/*
- Create migration script for Better Auth database schema
- Update main index to use Better Auth routes instead of custom auth
- Configure email/password and OAuth (GitHub/Google) providers

Frontend changes:
- Add better-auth client
- Create Better Auth client instance configuration
- Update lib/auth.ts to use Better Auth session
- Rewrite sign-in page with Better Auth methods
- Rewrite sign-up page with Better Auth methods
- Remove NextAuth route handler

Documentation:
- Add comprehensive migration guide with setup instructions
- Document environment variables and API endpoints
- Include testing checklist and rollback plan

Benefits:
- Unified authentication for both Elysia backend and Next.js frontend
- Database-backed sessions (more secure than JWT)
- Better TypeScript support
- Extensible plugin system for future features
- Active development and frequent updates
2026-02-20 04:13:26 +00:00
Francesco
7b87ff2f04 chore: Update auth files for NextAuth v5 compatibility
Breaking changes for NextAuth v5:
- Updated route.ts to use NextAuthConfig and new export pattern
- Changed getServerSession import to use auth from config
- Updated types and session handling for NextAuth v5
- Maintained backward compatibility with existing auth flow
2026-02-19 02:57:42 +00:00
Francesco
da58289eb1 feat: Complete Fiscal Clone deployment package
- SEC filings extraction (10-K, 10-Q, 8-K)
- Portfolio analytics with real-time prices
- Watchlist management
- NextAuth.js authentication
- OpenClaw AI integration
- PostgreSQL database with auto P&L calculations
- Elysia.js backend (Bun runtime)
- Next.js 14 frontend (TailwindCSS + Recharts)
- Production-ready Docker configurations
2026-02-16 03:49:32 +00:00