Reputation: 1
Here is the code that I wrote that is in question
firebase.auth().onAuthStateChange(firebaseUser => {
if(firebaseUser) {
console.log(firebaseUser);
} else {console.log('not logged in');
}
Yes, I have changed the script from Firebase
Upvotes: 0
Views: 362
Reputation: 38171
try including <script src="https://cdn.firebase.com/js/client/[version]/firebase.js"></script>
in your html.
Upvotes: 1