diff options
author | Muxi Yan <mxyan@google.com> | 2018-12-19 09:16:26 -0800 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-12-19 09:16:26 -0800 |
commit | 25e73664136ea01e2b8a64149a97e782c57d9f7d (patch) | |
tree | 17890f21ecbc91416390c33e50d29a39e4d84148 /src/objective-c/GRPCClient/GRPCCallOptions.h | |
parent | 3f57e3451bf4a3687e70e92fc218ea25ff7a17c9 (diff) |
Revert "Rename getTokenWithHandler"
Since the renamed protocol is breaking people and is not general enough, we revert the rename and leave the work to interceptor
This reverts commit 92db5fc72488f9d62b81ee311a79832df787f3ef.
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCallOptions.h')
-rw-r--r-- | src/objective-c/GRPCClient/GRPCCallOptions.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCallOptions.h b/src/objective-c/GRPCClient/GRPCCallOptions.h index b866f268ee..b5bf4c9eb6 100644 --- a/src/objective-c/GRPCClient/GRPCCallOptions.h +++ b/src/objective-c/GRPCClient/GRPCCallOptions.h @@ -60,22 +60,12 @@ typedef NS_ENUM(NSUInteger, GRPCTransportType) { /** * Implement this protocol to provide a token to gRPC when a call is initiated. */ -@protocol GRPCAuthorizationProtocol<NSObject> - -@optional +@protocol GRPCAuthorizationProtocol /** * This method is called when gRPC is about to start the call. When OAuth token is acquired, * \a handler is expected to be called with \a token being the new token to be used for this call. */ -- (void)provideTokenToHandler:(void (^)(NSString *_Nullable token))handler; - -/** - * This method is deprecated. Please use \a provideTokenToHandler. - * - * This method is called when gRPC is about to start the call. When OAuth token is acquired, - * \a handler is expected to be called with \a token being the new token to be used for this call. - */ - (void)getTokenWithHandler:(void (^)(NSString *_Nullable token))handler; @end |