while using auth.onAuthStateChanged(), my user credentials are logged to the console even though there are no console.logs being used
I'm using Firebase for authentication and I'm using the onAuthStateChanged observer.
I don't have a console.log() set up for user
, but for some reason it logs to the console. I definitely don't want my user credentials logging to the console, so I was curious if anyone knew why this was happening and how I can stop it from开发者_开发技巧 logging.
useEffect(() => {
auth.onAuthStateChanged((user) => {
setUserStatus(!!user);
});
}, [userId, auth]);
精彩评论