title: How to use the Firebase refreshToken to reauthenticate?
body: <p>I use the JS library call <code>firebase.auth().signInWithEmailAndPassword(email, password)</code> and get back a <code>User</code> object. The <code>User</code> object contains a <a href="https://firebase.google.com/docs/reference/js/firebase.User#refreshToken" rel="noreferrer"><code>refreshToken</code></a>.</p>
  
  <p>I use <code>curl 'https://docs-examples.firebaseio.com/rest/saving-data/auth-example.json?auth=TOKEN'</code> to make calls to Firebase. </p>
  
  <p>The token will eventually expire. In order to make it look like the application (<code>iOS</code> and <code>macOS</code>) has persistent login, I want to refresh the token, how do I do that with using either the <code>REST</code> or <code>JS</code> library? I can't find any calls in the documentation that allow me to use the <code>refreshToken</code> to get a new <code>token</code>.</p>