开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜