I'm having a problem when I try to make more than one new Firebase(url);
instance.
For example:
var token1 = "c.AdASdsAsds...";
var token2 = "c.dkasdEddss...";
var v1 = new Firebase('https://developer-api.nest.com');
v1.auth(token1,function(err){
console.log("Connected 1 "+err);
},function(err){ console.log("Cancel 1: "+err); });
var v2 = new Firebase('https://developer-api.nest.com');
v2.auth(token2,function(err){
console.log("Connected 2 "+err);
},function(err){ console.log("Cancel 2 "+err); });
Console logs: Connected 2 null
and that's it.. no more.
So, it means it never calls the callback function from v1.auth();
it ignores it, it looks like it becomes overridden by the v2.auth();
even though they are different Firebases instances, and it interferes everything else, for example, the v1.child("path").on("value",function(snapshot){});
and v2.child("path").on("value",function(snapshot){});
won't work when this happens.