Thanks Justin.
// authenticate
var auth = new FirebaseSimpleLogin(fb, function (err, user) {
if (err) {
logError(err);
} else if (user) {
userId = user.uid;
data.sender = userId;
$('#myid').text(user.uid);
$('button').prop('disabled', false);
}
});
auth.login('anonymous');
This seems like there's a way to do anonymous login in Firebase. I always thought that for anonymous users, I just let them touch any firebase node without any validation check, but actually with 'anonymous' login I'd have much better control over what they can and cannot do.
Now the search for FirebaseSimpleLogin show that it got deprecated. What's the general way of doing anonymous login now?