FirebaseExtended / firebase-auth-migration-helpers

Other
11 stars 16 forks source link

[Docs] - Error in Syntax of JavaScript in web/README.md #6

Closed mrosata closed 8 years ago

mrosata commented 8 years ago

There is a close parenthesis ) after the closing curly brace } on the if statement.

firebase.auth().onAuthStateChanged(function(user) {
  if (user) {
    firebase.authMigrator().clearLegacyAuth();
  });
});

should be:

firebase.auth().onAuthStateChanged(function(user) {
  if (user) {
    firebase.authMigrator().clearLegacyAuth();
  };
});
jwngr commented 8 years ago

Fixed with https://github.com/firebase/firebase-auth-migration-helpers/commit/eb0ab4d7d1e24b3201a0ee29e39e596c2a9543c0. Thanks for letting us know.