Skip to content

Commit 5bd3e05

Browse files
Accept HTTP status codes between 199 and 300 as successes (#78)
1 parent f67968e commit 5bd3e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/response/AuthResponse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ AuthResponse.prototype.headers = function headers() {
8686
* @returns {*|boolean}
8787
*/
8888
AuthResponse.prototype.valid = function valid() {
89-
return (this.response && Number(this.response.status) === 200);
89+
return (this.response && Number(this.response.status) >= 200 && Number(this.response.status) < 300);
9090
};
9191

9292

0 commit comments

Comments
 (0)