Felipe Cardoso 01b406bca7 Add DI-based AuthContext wrapper and migrate auth flows to improve testability
- Introduced a new `AuthContext` with Dependency Injection to replace direct `useAuthStore` access, enhancing E2E testability.
- Migrated authentication core components (`AuthInitializer`, `AuthGuard`, `Header`) and hooks (`useAuth`, `useUser`) to use `AuthContext`.
- Updated test suite:
  - Refactored unit tests to mock `AuthContext` instead of `useAuthStore`.
  - Enhanced E2E test helpers to inject mock auth stores for authenticated and admin scenarios.
  - Verified API client interceptors remain compatible with the new setup.
- No breaking changes; maintained 98.38% test coverage.
2025-11-03 09:24:44 +01:00
Description
FastNext Stack is a modern full-stack template combining FastAPI, Next.js, and PostgreSQL in a Docker-ready environment. It provides a production-grade foundation for building scalable web applications with TypeScript frontend and Python backend.
MIT 7.3 MiB
Languages
TypeScript 53.5%
Python 44.4%
JavaScript 1.3%
Makefile 0.3%
CSS 0.2%
Other 0.2%