diff --git a/src/hooks/useAuth.tsx b/src/hooks/useAuth.tsx index d3aa4612..72056060 100644 --- a/src/hooks/useAuth.tsx +++ b/src/hooks/useAuth.tsx @@ -199,6 +199,8 @@ function AuthProviderComponent({ children }: { children: React.ReactNode }) { setSession(session); setUser(session.user); sessionVerifiedRef.current = true; + // Keep loading true until profile is fetched (same as SIGNED_IN) + setLoading(true); } else { authLog('[Auth] INITIAL_SESSION with no user - setting loading to false'); setSession(null);