mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03:00
Phase 2 of the DI plan. Enables mock clients/fetchers to be injected in integration tests without touching the HTTP layer. packages/common/auth.tsx - Add AuthClient interface (initialize, onAuthStateChange, refreshSession) — narrow type covering only the methods AuthProvider uses - Add optional gotrueClient?: AuthClient prop to AuthProvider with singleton fallback for backward compatibility packages/common/feature-flags.tsx - Add optional getPostHogFlags prop to FeatureFlagProvider; used in place of the hardcoded getFeatureFlags() call when provided, falls back to existing behavior when omitted apps/studio/lib/app-providers.tsx - Wire registry.featureFlags.getPostHogFlags into FeatureFlagProvider