Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/445.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Firebase匿名身份验证问题_Javascript_Backbone.js_Firebase - Fatal编程技术网

Javascript Firebase匿名身份验证问题

Javascript Firebase匿名身份验证问题,javascript,backbone.js,firebase,Javascript,Backbone.js,Firebase,我使用Firebase简单登录(1.6.1版)进行匿名身份验证。我从 var livepolling_ref = new Firebase(FIREBASE_URL); var auth = new FirebaseSimpleLogin(livepolling_ref, function(error, user) { if (error) { console.log('An error!'); } else if (user) { //Boot

我使用Firebase简单登录(1.6.1版)进行匿名身份验证。我从

var livepolling_ref = new Firebase(FIREBASE_URL);
var auth = new FirebaseSimpleLogin(livepolling_ref, function(error, user) {
    if (error) {
        console.log('An error!');
    } else if (user) {
        //Boot the App and save the user.id
        //I'm able to reach this point in the code using the debugger
    }
});

auth.login('anonymous');
我已经检查了用户在回调中是否有uid和FirebaseAuthToken,并保存了用户id。因此,看起来我已登录

然而,我的整个Firebase回购协议有以下安全性

".write": "auth != null"

当我检查Chrome控制台时,它告诉我“权限被拒绝”。

我意识到我的错误——我引用了错误的Firebase Repo。抱歉搞混了

这里没有足够的信息来复制或提供帮助。你能从版本信息开始,并举一个简短的例子来说明问题吗?您是否检查了错误回调以确保用户实际登录?你检查过JavaScript控制台了吗?这里没有足够的内容知道从哪里开始。我已经编辑了我的原始帖子!伟大的侦探工作!很高兴你解决了。