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 e56827b commit 5fe6147Copy full SHA for 5fe6147
Sources/OAuth2Client/NXOAuth2Connection.m
@@ -415,8 +415,8 @@ - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLRespon
415
}
416
417
418
- if (/*self.statusCode == 401 // TODO: check for status code once the bug returning 500 is fixed
419
- &&*/ client.accessToken.refreshToken != nil
+ if (self.statusCode == 401
+ && client.accessToken.refreshToken != nil
420
&& authenticateHeader
421
&& [authenticateHeader rangeOfString:@"expired_token"].location != NSNotFound) {
422
[self cancel];
0 commit comments