const auth = getAuth(); const user = auth.currentUser; console.log(auth) if (user) {
omg it was working whole time... problem was at this, where auth were already loaded but user not, so function returned false.