We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f67968e commit 5bd3e05Copy full SHA for 5bd3e05
src/response/AuthResponse.js
@@ -86,7 +86,7 @@ AuthResponse.prototype.headers = function headers() {
86
* @returns {*|boolean}
87
*/
88
AuthResponse.prototype.valid = function valid() {
89
- return (this.response && Number(this.response.status) === 200);
+ return (this.response && Number(this.response.status) >= 200 && Number(this.response.status) < 300);
90
};
91
92
0 commit comments