title: How to create "credential" object needed by Firebase web user.reauthenticateWithCredential() method?
body: <p>The (unclear) example in the <a href="https://firebase.google.com/docs/auth/web/manage-users#re-authenticate_a_user" rel="noreferrer">new docs</a>:</p>
  
  <pre><code>var user = firebase.auth().currentUser;
  var credential;
  // Prompt the user to re-provide their sign-in credentials
  user.reauthenticateWithCredential(credential).then(function() {
  </code></pre>
  
  <p><strong>How should I create this <code>credential</code> object?</strong></p>
  
  <p>I tried: </p>
  
  <ul>
  <li><code>reauthenticateWithCredential(email, password)</code> (like the login method)</li>
  <li><code>reauthenticateWithCredential({ email, password })</code> (the docs mention one argument only)</li>
  </ul>
  
  <p>No luck :(</p>
  
  <p><em>PS: I don't count the hours wasted searching for relevant info in the new docs... I miss so much the fabulous firebase.com docs, but wanted to switch to v3 or superior for firebase.storage...</em></p>