How to use the google-gax.GoogleAuth function in google-gax

To help you get started, we’ve selected a few google-gax examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github googleapis / nodejs-bigtable / src / index.ts View on Github external
BigtableTableAdminClient: Object.assign(
        {
          servicePath: customEndpoint
            ? customEndpointBaseUrl
            : defaultAdminBaseUrl,
          port: customEndpoint ? parseInt(customEndpointPort, 10) : 443,
          sslCreds: customEndpoint
            ? grpc.credentials.createInsecure()
            : undefined,
        },
        options
      ),
    };

    this.api = {};
    this.auth = new GoogleAuth(options);
    this.projectId = options.projectId || '{{projectId}}';
    this.appProfileId = options.appProfileId;
    this.projectName = `projects/${this.projectId}`;
    this.shouldReplaceProjectIdToken = this.projectId === '{{projectId}}';
  }