score:1

Accepted answer
firebase.auth().onAuthStateChanged((user) => {..// rest of the code..}

Related Query

More Query from same tag