firebase.auth().currentUser shows me null but it logged in

Found it myself 😉 during initialization firebase.auth().currentUser is null so you should use firebase.auth().onAuthStateChanged(function(user) { if (user) { // User is signed in. } else { // No user is signed in. } }); as recommended here https://firebase.google.com/docs/auth/w…