File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2121- (instancetype )initAccountWithAccessToken : (NXOAuth2AccessToken *)accessToken
2222 accountType : (NSString *)accountType ;
2323
24+ @property (nonatomic , strong ) NXOAuth2AccessToken *accessToken;
25+
2426@end
Original file line number Diff line number Diff line change 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;
You can’t perform that action at this time.
0 commit comments