From 935f3f02ec946666675639d69c1589d36409c3de Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Fri, 10 Apr 2026 08:24:58 +0200 Subject: [PATCH] Add debug logging for session changes --- src/App.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 85fb468..38ec896 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -19,13 +19,21 @@ import { PendingValidationView } from './components/PendingValidationView'; export default function App() { const [session, setSession] = useState(() => getStoredSession()); + useEffect(() => { + console.log('[App] session changed:', session ? 'logged in' : 'logged out'); + }, [session]); + const handleSignOut = () => { signOut(); setSession(null); }; if (!session) { - return setSession(getStoredSession())} />; + return { + const stored = getStoredSession(); + console.log('[App] onLogin, stored session:', stored ? 'found' : 'null'); + setSession(stored); + }} />; } const [appState, setAppState] = useState({