Hi, I am calling the below function useEffect(()...
# support-questions-legacy
s
Hi, I am calling the below function useEffect(() => { const checkSession = async () => { try { if (await doesSessionExist()) { console.log("User is logged in"); } else { console.log("User has not logged in yet"); } } catch (error) { console.error("Error checking session:", error); } }; checkSession(); }, []); although I am logged out, still it is showing User is logged in in console, , what I am doing wrong? please help