I use this simple code to authenticate on my web app
firebase.auth().signInWithCustomToken(token).catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
// ...
});
After authentication I get the following error in my browser: 'Firebase TypeError: Cannot read property 'ac' of undefined' which seems to point to an error here:
h.set = function(a, b, c) {
var d = this.aa(a, c)
, e = this
, f = Si(this, a.B);
return f.set(d, b).then(function() {
return f.get(d)
}).then(function(b) {
"local" != a.B || this.ac || (e.W[d] = b);
})
}
;
I'm compiling my es6 code using rollup and buble. Also please note that on the server response it looks like I'm successfully authenticating.
Because I got the following response:
{
"kind": "identitytoolkit#VerifyCustomTokenResponse",
"idToken": "token",
"refreshToken": "refreshtoken",
"expiresIn": "3600"
}
Please help. Thanks.