I used ref.authWithCustomToken()
, but the payload that is returned has null properties: auth, expires, token, uid. Except for the 'provider' property which is set to 'custom'. The authData
object has null
values. What is more curious is its not saying "Login Failed!", its saying Authenticated successfully with payload: null.
What is the reason for this?
var ref = new Firebase(kRootRefURL);
ref.authWithCustomToken(kSecret, function(error, authData) {
if (error) {
console.log("Login Failed!", error);
} else {
console.log("Authenticated successfully with payload:", authData);
}
});
I took an additional step set an onAuth()
listener to just log the authData
to the console but it, too, is null
.