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 dc65777 commit 134692dCopy full SHA for 134692d
Sources/OAuth2Client/NXOAuth2AccessToken.m
@@ -67,7 +67,7 @@ + (id)tokenWithResponseBody:(NSString *)theResponseBody tokenType:(NSString *)to
67
}
68
69
NSDate *expiryDate = nil;
70
- if (expiresIn != nil && expiresIn != [NSNull null]) {
+ if (expiresIn != nil && [expiresIn isKindOfClass:[NSNull class]] == NO) {
71
expiryDate = [NSDate dateWithTimeIntervalSinceNow:[expiresIn integerValue]];
72
73
return [[[self class] alloc] initWithAccessToken:anAccessToken
0 commit comments