Fixed syntax

This commit is contained in:
murgatroid99 2015-02-26 08:49:06 -08:00
parent b787545632
commit 537dadbc0d
1 changed files with 2 additions and 2 deletions

View File

@ -126,8 +126,8 @@ var stub = new helloworld.Greeter('localhost:50051');
// Authenticating with Google // Authenticating with Google
var GoogleAuth = require('google-auth-library'); // from https://www.npmjs.com/package/google-auth-library 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 var creds = grpc.Credentials.createSsl(load_certs); // load_certs typically loads a CA roots file
scope = 'https://www.googleapis.com/auth/grpc-testing'; var scope = 'https://www.googleapis.com/auth/grpc-testing';
(new GoogleAuth()).getApplicationDefault(function(err, auth) { (new GoogleAuth()).getApplicationDefault(function(err, auth) {
if (auth.createScopeRequired()) { if (auth.createScopeRequired()) {
auth = auth.createScoped(scope); auth = auth.createScoped(scope);