How to allow read/write access to Firebase database with Email Authentication
<p>I am trying to read/write data to my Firebase Database with the below security rules. I am confused as I believe I've followed the documentation given by firebase. </p>

<p>I've followed this link -> <a href="https://firebase.google.com/docs/database/security/user-security#section-variable" rel="nofollow">FIREBASE USER BASED SECURITY</a></p>

<p>I only have two child nodes that I am writing to. User data, and a wireless node data that is entered by the user.</p>

<pre><code>{
"rules": {
"nodes": {
  "$user_id": {
    ".read": "$user_id === auth.uid",
    ".write": "$user_id === auth.uid"
  }
},
"users": {
  "$uid": {
    ".read": "$uid === auth.uid",
    ".write": "$uid === auth.uid"
   }
  }
 }
}
</code></pre>