diff --git a/src/v1beta1/gateway_service_client.ts b/src/v1beta1/gateway_service_client.ts index c39cc16..e51f7ac 100644 --- a/src/v1beta1/gateway_service_client.ts +++ b/src/v1beta1/gateway_service_client.ts @@ -125,6 +125,12 @@ export class GatewayServiceClient { // 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;