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 32dc036 commit 792c98dCopy full SHA for 792c98d
Sources/OAuth2Client/NXOAuth2Connection.m
@@ -169,7 +169,7 @@ - (NSURLConnection *)createConnection;
169
// if token is expired don't bother starting this connection.
170
NSDate *tenSecondsAgo = [NSDate dateWithTimeIntervalSinceNow:(-10)];
171
NSDate *tokenExpiresAt = client.accessToken.expiresAt;
172
- if (nil != client.accessToken.refreshToken && [tenSecondsAgo earlierDate:tokenExpiresAt] == tokenExpiresAt) {
+ if (client.accessToken.refreshToken && [tenSecondsAgo earlierDate:tokenExpiresAt] == tokenExpiresAt) {
173
[self cancel];
174
[client refreshAccessTokenAndRetryConnection:self];
175
return nil;
0 commit comments