aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-02-26 08:49:06 -0800
committerGravatar murgatroid99 <mlumish@google.com>2015-02-26 08:49:06 -0800
commit537dadbc0d0186993e862ed695a844a619c1ba84 (patch)
tree8e97aaf7e7f8d752742d78d8d2ada09a41fe1ca5
parentb787545632df1c62c2822284f03d79eae693aec0 (diff)
Fixed syntax
-rw-r--r--grpc-auth-support.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/grpc-auth-support.md b/grpc-auth-support.md
index ed0ef408cb..9cb9012e23 100644
--- a/grpc-auth-support.md
+++ b/grpc-auth-support.md
@@ -126,8 +126,8 @@ var stub = new helloworld.Greeter('localhost:50051');
// Authenticating with Google
var GoogleAuth = require('google-auth-library'); // from https://www.npmjs.com/package/google-auth-library
...
-creds = grpc.Credentials.createSsl(load_certs); // load_certs typically loads a CA roots file
-scope = 'https://www.googleapis.com/auth/grpc-testing';
+var creds = grpc.Credentials.createSsl(load_certs); // load_certs typically loads a CA roots file
+var scope = 'https://www.googleapis.com/auth/grpc-testing';
(new GoogleAuth()).getApplicationDefault(function(err, auth) {
if (auth.createScopeRequired()) {
auth = auth.createScoped(scope);