0

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

1
  • how is firebase defined? Commented Apr 11, 2017 at 3:25

1 Answer 1

1

try including <script src="https://cdn.firebase.com/js/client/[version]/firebase.js"></script>in your html.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.