0

これらのルールは正しい形式ですか?私はデータベースルールに入れて、私はエラー/警告を示すかもしれない赤い破線を参照してください、私はそれの上にマウスを置くと、私はフィードバックが表示されません。Firebaseセキュリティルールの正しい書式

{ 
    "rules": { 

    "users": { 
     "$uid": { 
     // grants write access to the owner of this user account whose uid must exactly match the key ($uid) 
     ".write": "auth !== null && auth.uid === $uid", 
     // grants read access to any user who is logged in --&& auth.provider === 'password' 
     ".read": "auth !== null" 
     } 
    }, 

    "usernames": { 
     "$userName": { 
     // grants write access to the owner of this user account whose uid must exactly match the key ($uid) 
     ".write": "root.child('usernames').child($userName).child('uid').val() == auth.uid || root.child('usernames').child($userName).child('uid').val() == null", 
     // grants read access to any user who is logged in --&& auth.provider === 'password' 
     ".read": "auth !== null" 
     } 
    }, 

    "following": { 
     "$uid": { 
     // grants write access to the owner of this user account whose uid must exactly match the key ($uid) 
     ".write": "auth !== null && auth.uid === $uid", 
     // grants read access to any user who is logged in --&& auth.provider === 'password' 
     ".read": "auth !== null" 
     } 
    }, 

    "followedBy": { 
     "$fid": { 
     "$uid": { 
      // grants write access to the owner of this user account whose uid must exactly match the key ($uid) 
      ".write": "auth !== null && auth.uid === $uid", 
      // grants read access to any user who is logged in --&& auth.provider === 'password' 
      ".read": "auth !== null" 
     } 
     } 
    } 

    } 
} 

これは私が見たものである。 enter image description here

答えて

1

私もそれらを見てきました。私は空の行を追加するとすぐにかなりです。

私は、空白行が、誤ったエラーインジケーターが表示されているだけだと思います。

何も失敗していないので(少なくとも私が見る限り)、私はそれらについて心配しないでしょう。

+0

私が尋ねた理由は、上記マニュアルリンクの説明に従っており、OAuth(ログイン用)のFacebookとEmail(Google)ボタンは表示されません。あなたがその理由を知っているのではないかと思います。 –

+0

うわー!私はFirebase Engineerと話をしたことを知りました!私が直面している問題のスクリーンショットを示すことができる余裕のある部屋はありますか?基本的に、サインアップをクリックして手動アカウントを作成しても、何も起こりません。 –

+0

セキュリティルールによって、アプリ内のボタンが表示されなくなることはありません。コードとルールは両立しているべきですが、それらの間には明確な関係はありません。ボタンを表示するのに問題がある場合は、[問題を再現するのに必要な最小限のコード](http://stackoverflow.com/help/mcve)を表示すると簡単に手助けをすることができます。これはコミュニティの余裕のあるチャンネルにも当てはまります。firebase-community.appspot.comからサインアップできます –

関連する問題