Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handling Oauth server internal errors.
In situation when your OAuth server dies, the web server often gives you default error 500 page. This page has text/html type, but current behavior - is to try to parse in anyway. The problem is: without handling the 500 code on non-json page, you will get the type error on line 529, which can be hard to debug. So even if this fix will not enough and you reject it, please at least make some notice in documentation about handling such errors. While you auth with Googe, Facebook, etc providers all is usually ok - they test what they write. But there are lots of sites who provides the oauth with awful and unstable realisation. Style fix.
- Loading branch information