File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 21
21
- (instancetype )initAccountWithAccessToken : (NXOAuth2AccessToken *)accessToken
22
22
accountType : (NSString *)accountType ;
23
23
24
+ @property (nonatomic , strong ) NXOAuth2AccessToken *accessToken;
25
+
24
26
@end
Original file line number Diff line number Diff line change 33
33
#pragma mark -
34
34
35
35
@interface NXOAuth2Account () <NXOAuth2ClientDelegate, NXOAuth2TrustDelegate>
36
+
37
+ @property (nonatomic , strong ) NXOAuth2AccessToken *accessToken;
36
38
@end
37
39
38
40
#pragma mark -
@@ -84,7 +86,7 @@ - (NXOAuth2Client *)oauthClient;
84
86
@synchronized (oauthClient) {
85
87
if (oauthClient == nil ) {
86
88
NSDictionary *configuration = [[NXOAuth2AccountStore sharedStore ] configurationForAccountType: self .accountType];
87
-
89
+
88
90
NSString *clientID = [configuration objectForKey: kNXOAuth2AccountStoreConfigurationClientID ];
89
91
NSString *clientSecret = [configuration objectForKey: kNXOAuth2AccountStoreConfigurationSecret ];
90
92
NSURL *authorizeURL = [configuration objectForKey: kNXOAuth2AccountStoreConfigurationAuthorizeURL ];
@@ -106,11 +108,11 @@ - (NXOAuth2Client *)oauthClient;
106
108
if (additionalQueryParams) {
107
109
oauthClient.additionalAuthenticationParameters = additionalQueryParams;
108
110
}
109
-
111
+
110
112
if (customHeaderFields) {
111
113
oauthClient.customHeaderFields = customHeaderFields;
112
114
}
113
-
115
+
114
116
}
115
117
}
116
118
return oauthClient;
You can’t perform that action at this time.
0 commit comments