Polymerfire error on production

64 views Asked by At

My project works fine locally and when I deploy it to Firebase Hosting. Also works fine on Edge, but doesn't work in Chrome when I deploy it. I get the error shown below. I think that the "auth" process never finished, but I don't know why :(

enter image description here

The code is very simple:

signIn: function () {
  var that = this;
  this.$.auth.signInWithPopup()
    .then(function (res) {
      that.fire('feedback-positivo', 'Has iniciado sesiĆ³n');
      that.saveProfile(res.user, res.credential);
    })
    .catch(function (error) {
      console.log('Error', error.message, error.code);
    });
},
0

There are 0 answers