When authenticating on my web app, I utilize this straightforward code:
firebase.auth().signInWithCustomToken(token).catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
// ...
});
However, after authentication, I encountered an error in my browser: 'Firebase TypeError: Cannot read property 'ac' of undefined', pointing to a potential issue in the following code snippet:
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);
})
}
;
It's worth noting that I compile my es6 code using rollup and buble, and the server response indicates successful authentication:
Here is the response:
{
"kind": "identitytoolkit#VerifyCustomTokenResponse",
"idToken": "token",
"refreshToken": "refreshtoken",
"expiresIn": "3600"
}
If anyone can offer assistance with resolving this issue, it would be greatly appreciated. Thank you.