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({