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.
2 parents 302c80a + 134692d commit 190223fCopy full SHA for 190223f
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