title: Javascript code to access Firebase jwt name
body: <p>In a Firebase database, I have the following:</p>
  
  <pre><code>books-4de62
   |
  [-]-- Albany
         |
        [-] -- -KvcbdqFnnhC0WwnjciM
                 |
                 |-- "bookname": "Car repairs"
                 |-- "available": "yes"
  </code></pre>
  
  <p>I can get a reference to Albany OK using:</p>
  
  <pre><code>var dbRef = new Firebase("https://books-4de62.firebaseio.com/");
  var albanyRef = dbRef.child('Albany');
  </code></pre>
  
  <p>If I hardcode the <code>-KvcbdqFnnhC0WwnjciM</code> into the path using</p>
  
  <pre><code>var bookRef = albanyRef.child('/-KvcZj0urOutVNlq4w-r/');
  </code></pre>
  
  <p>I can then read the booknam, available data OK</p>
  
  <p>Q. In js, how can I obtain the jwt name of <code>-KvcbdqFnnhC0WwnjciM</code> ? so I don't have to hardcode it? </p>