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