소스 검색

Fixed syntax

murgatroid99 10 년 전
부모
커밋
537dadbc0d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      grpc-auth-support.md

+ 2 - 2
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);