开发者

while using auth.onAuthStateChanged(), my user credentials are logged to the console even though there are no console.logs being used

开发者 https://www.devze.com 2022-12-07 19:49 出处:网络
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 wa

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]);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号