diff --git a/src/v2beta/workflows_service_v2_beta_client.ts b/src/v2beta/workflows_service_v2_beta_client.ts index bca4065..cc7f5a1 100644 --- a/src/v2beta/workflows_service_v2_beta_client.ts +++ b/src/v2beta/workflows_service_v2_beta_client.ts @@ -130,6 +130,12 @@ export class WorkflowsServiceV2BetaClient { // Save the auth object to the client, for use by other methods. this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + // Set the default scopes in auth client if needed. if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; @@ -497,6 +503,7 @@ export class WorkflowsServiceV2BetaClient { return this.workflowsServiceV2BetaStub!.then(stub => { this._terminated = true; stub.close(); + this.operationsClient.close(); }); } return Promise.resolve();