aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2017-07-17 18:54:37 -0700
committerGravatar Muxi Yan <mxyan@google.com>2017-07-17 18:54:37 -0700
commit7dc61e04c916ad0c4472267be8a15d6e4aa0c493 (patch)
treeac6b4db977905d9e213cfb069897381027c3f161 /src/objective-c/GRPCClient
parent23f19d88545d1f56b7dbd73a887af6c6e61b7d2a (diff)
Polish property name
Diffstat (limited to 'src/objective-c/GRPCClient')
-rw-r--r--src/objective-c/GRPCClient/GRPCCall.h2
-rw-r--r--src/objective-c/GRPCClient/GRPCCall.m4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.h b/src/objective-c/GRPCClient/GRPCCall.h
index df6220c644..11e898242e 100644
--- a/src/objective-c/GRPCClient/GRPCCall.h
+++ b/src/objective-c/GRPCClient/GRPCCall.h
@@ -228,7 +228,7 @@ extern id const kGRPCTrailersKey;
*
* Not compatible with property oauth2AccessToken in GRPCCall (OAuth2). Do not use both at the same time.
*/
-@property(atomic, strong) id<GRPCAuthorizationProtocol> oauthToken;
+@property(atomic, strong) id<GRPCAuthorizationProtocol> tokenProvider;
/**
* The request writer has to write NSData objects into the provided Writeable. The server will
diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m
index 0f58bc40c8..7cc94ad2fe 100644
--- a/src/objective-c/GRPCClient/GRPCCall.m
+++ b/src/objective-c/GRPCClient/GRPCCall.m
@@ -457,10 +457,10 @@ static NSString * const kBearerPrefix = @"Bearer ";
// that the life of the instance is determined by this retain cycle.
_retainSelf = self;
- if (self.oauthToken != nil) {
+ if (self.tokenProvider != nil) {
self.isWaitingForToken = YES;
__weak typeof(self) weakSelf = self;
- [self.oauthToken getTokenWithHandler:^(NSString *token){
+ [self.tokenProvider getTokenWithHandler:^(NSString *token){
typeof(self) strongSelf = weakSelf;
if (strongSelf && strongSelf.isWaitingForToken) {
if (token) {