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"
}
}
}
}
}
私が尋ねた理由は、上記マニュアルリンクの説明に従っており、OAuth(ログイン用)のFacebookとEmail(Google)ボタンは表示されません。あなたがその理由を知っているのではないかと思います。 –
うわー!私はFirebase Engineerと話をしたことを知りました!私が直面している問題のスクリーンショットを示すことができる余裕のある部屋はありますか?基本的に、サインアップをクリックして手動アカウントを作成しても、何も起こりません。 –
セキュリティルールによって、アプリ内のボタンが表示されなくなることはありません。コードとルールは両立しているべきですが、それらの間には明確な関係はありません。ボタンを表示するのに問題がある場合は、[問題を再現するのに必要な最小限のコード](http://stackoverflow.com/help/mcve)を表示すると簡単に手助けをすることができます。これはコミュニティの余裕のあるチャンネルにも当てはまります。firebase-community.appspot.comからサインアップできます –