title: Authorize uid in firebase realtime database rules using rest api
body: <p>let say i have these rules in realtime DB </p>
  
  <pre><code>  "rules": {
         ".read": "auth !== null",
         ".write": "true"
      }
  </code></pre>
  
  <p>and i'm using axios to read data</p>
  
  <p><code>axios.get(`https://DBNAME.firebaseio.com/user.json?auth=${token}`)</code>
  it's working fine
  but when i have these Rules </p>
  
  <pre><code>"rules": {
      "$uid":{
         ".read": "auth.uid == $uid",
              ".write": "auth !== null"
          }
    }
  </code></pre>
  
  <p>and then again reading from that get request it return 401 error code (unauthorized) 
  So how can i authenticate the rules including uid etc using rest api 
  like 
  placing a uid in the place of token or something else</p>
  
  <pre><code>axios.get(`https://DBNAME.firebaseio.com/user.json?auth=${uid}`)
  
  </code></pre>
  
  <p>Pleas guide me the right way of doing so</p>
  
  <p>Thank You </p>