aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp
diff options
context:
space:
mode:
authorGravatar Yang Gao <yangg@google.com>2015-03-19 07:23:08 -0700
committerGravatar Yang Gao <yangg@google.com>2015-03-19 07:23:08 -0700
commit1fc046902c9885e33b0044496d1e2b80838340f9 (patch)
tree89bcfee60b0c5195378c76e7c6c7bdd6ea276a95 /src/cpp
parent757afaeb3072a3f3d30d2054ce1a53af168c48ce (diff)
parent99f1c1ee7efcceae76bf3dce17417ce5dc0ca0d7 (diff)
sync to head and run clang-format again
Diffstat (limited to 'src/cpp')
-rw-r--r--src/cpp/client/secure_credentials.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cpp/client/secure_credentials.cc b/src/cpp/client/secure_credentials.cc
index 412dc0764f..e3c6637623 100644
--- a/src/cpp/client/secure_credentials.cc
+++ b/src/cpp/client/secure_credentials.cc
@@ -123,6 +123,13 @@ std::unique_ptr<Credentials> JWTCredentials(
grpc_jwt_credentials_create(json_key.c_str(), lifetime));
}
+// Builds refresh token credentials.
+std::unique_ptr<Credentials> RefreshTokenCredentials(
+ const grpc::string& json_refresh_token) {
+ return WrapCredentials(
+ grpc_refresh_token_credentials_create(json_refresh_token.c_str()));
+}
+
// Builds IAM credentials.
std::unique_ptr<Credentials> IAMCredentials(
const grpc::string& authorization_token,