File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ Getting the sources is as easy as doing a:
31
31
* Add ` $(SRCROOT)/path/to/OAuth2Client ` _ Header Search Paths_ , set as _ recursive_
32
32
* Add ` -ObjC ` to _ Other Linker Flags_
33
33
* ` #import "NXOAuth2.h" `
34
+ * add the Security.framework as a build dependency
34
35
35
36
#### Desktop Mac projects
36
37
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ + (id)tokenWithResponseBody:(NSString *)theResponseBody tokenType:(NSString *)to
67
67
}
68
68
69
69
NSDate *expiryDate = nil ;
70
- if (expiresIn) {
70
+ if (expiresIn != nil && expiresIn != [ NSNull null ] ) {
71
71
expiryDate = [NSDate dateWithTimeIntervalSinceNow: [expiresIn integerValue ]];
72
72
}
73
73
return [[[self class ] alloc ] initWithAccessToken: anAccessToken
You can’t perform that action at this time.
0 commit comments