title: Firebase user delete not working
body: <p>I am following newest version of Firebase Google Web SDK. Everything from login to sign up and sign out works just fine. I want to let users delete their own accounts and followed the API reference for <code>firebase.User</code> class. Also I read their docs about <a href="https://firebase.google.com/docs/auth/web/manage-users" rel="nofollow">managing users</a>.</p>
  
  <p>This is the code I use:</p>
  
  <pre><code>function deleteAccount () {
    console.log('delete account!!')
    const auth = firebase.auth()
    console.log({auth})
  
    auth.delete().then(function () {
      console.log('delete successful?')
      const user = firebase.auth().currentUser
      console.log({user})
      store.dispatch(forgetUser())
      routerReset('GetStarted')
    }).catch(function (error) {
      console.log({error})
      // An error happened.
    })
  }
  </code></pre>
  
  <p>The function <code>delete</code> appears to work from <code>firebase.Auth</code> object and resolves the promise. If doing the same with <code>signOut</code> the log presents an undefined object, however here:</p>
  
  <pre><code>console.log({user}) // { user: Firebase.User object }
  </code></pre>
  
  <p>No error is emitted.</p>
  
  <p>NOTE: this is a react-native app.</p>