Skip to content

Commit 190223f

Browse files
committed
Merge branch 'release/1.2.3'
2 parents 302c80a + 134692d commit 190223f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OAuth2Client/NXOAuth2AccessToken.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ + (id)tokenWithResponseBody:(NSString *)theResponseBody tokenType:(NSString *)to
6767
}
6868

6969
NSDate *expiryDate = nil;
70-
if (expiresIn != nil && expiresIn != [NSNull null]) {
70+
if (expiresIn != nil && [expiresIn isKindOfClass:[NSNull class]] == NO) {
7171
expiryDate = [NSDate dateWithTimeIntervalSinceNow:[expiresIn integerValue]];
7272
}
7373
return [[[self class] alloc] initWithAccessToken:anAccessToken

0 commit comments

Comments
 (0)