Skip to content

Commit ae85fb3

Browse files
committed
Merge pull request #172 from wireframe/refresh-fix-compilation
Fix compilation error for NXOAuth2AccountStore accessToken property
2 parents 269536f + ef7718f commit ae85fb3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

NXOAuth2Account+Private.h

+2
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@
2121
- (instancetype)initAccountWithAccessToken:(NXOAuth2AccessToken *)accessToken
2222
accountType:(NSString *)accountType;
2323

24+
@property (nonatomic, strong) NXOAuth2AccessToken *accessToken;
25+
2426
@end

Sources/OAuth2Client/NXOAuth2Account.m

+5-3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
#pragma mark -
3434

3535
@interface NXOAuth2Account () <NXOAuth2ClientDelegate, NXOAuth2TrustDelegate>
36+
37+
@property (nonatomic, strong) NXOAuth2AccessToken *accessToken;
3638
@end
3739

3840
#pragma mark -
@@ -84,7 +86,7 @@ - (NXOAuth2Client *)oauthClient;
8486
@synchronized (oauthClient) {
8587
if (oauthClient == nil) {
8688
NSDictionary *configuration = [[NXOAuth2AccountStore sharedStore] configurationForAccountType:self.accountType];
87-
89+
8890
NSString *clientID = [configuration objectForKey:kNXOAuth2AccountStoreConfigurationClientID];
8991
NSString *clientSecret = [configuration objectForKey:kNXOAuth2AccountStoreConfigurationSecret];
9092
NSURL *authorizeURL = [configuration objectForKey:kNXOAuth2AccountStoreConfigurationAuthorizeURL];
@@ -106,11 +108,11 @@ - (NXOAuth2Client *)oauthClient;
106108
if (additionalQueryParams) {
107109
oauthClient.additionalAuthenticationParameters = additionalQueryParams;
108110
}
109-
111+
110112
if (customHeaderFields) {
111113
oauthClient.customHeaderFields = customHeaderFields;
112114
}
113-
115+
114116
}
115117
}
116118
return oauthClient;

0 commit comments

Comments
 (0)