diff --git a/src/objective-c/GRPCClient/GRPCCall.h b/src/objective-c/GRPCClient/GRPCCall.h index df6220c6448f838727569ccae30ed037ab4e8019..11e898242ebaa2c50b93e8e71a8235feb0dc758d 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 0f58bc40c8bc0cb2e52d05067ceb760cb5357dda..7cc94ad2fe7305cce1117747d5413f21d8bc6e7d 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) {