title: Firebase authWithOAuthRedirect fails to handle bad credentials error
body: <p>I've accidentally used wrong Facebook App Secret in Dashboard. Because of that I got into endless loop of authentication because <code>onAuth</code> callback was always invoked with <code>null</code>. Only after I switched to <code>authWithOAuthPopup</code>, the callback with error got invoked and I was able to find out about the error.</p>
  
  <p>There was this request
  <code>https://auth.firebase.com/v2/scent/auth/session?&amp;requestId=3zu08w12z46cj6wjno91acp1ylhr17yuzqfn&amp;requestKey=OUYJb0pS4qpbuajatNjTymiG9tzqrpli&amp;v=js-2.3.2&amp;transport=json&amp;suppress_status_codes=true</code></p>
  
  <p>And the response
  <code>{"error":{"code":"INVALID_CREDENTIALS","message":"Invalid authentication credentials provided."}}</code></p>
  
  <p>Then I tried Google with bad secret and issue is pretty much the same. Even the error message. I guess some sort of standard.</p>
  
  <p>Twitter is somewhat better, because error is shown directly in the window <code>{"error":{"code":"ROUTE_NOT_FOUND","message":"Route not found."}}</code>. Not ideal, but at least developer knows there is something wrong instead of having endless loop.</p>
  
  <p>I did not tried GitHub, because I am not going to be use that anyway.</p>