File tree 2 files changed +12
-0
lines changed
packages/google-cloud-webrisk/src
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,12 @@ export class WebRiskServiceClient {
123
123
// Save the auth object to the client, for use by other methods.
124
124
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
125
125
126
+ // Set useJWTAccessWithScope on the auth object.
127
+ this . auth . useJWTAccessWithScope = true ;
128
+
129
+ // Set defaultServicePath on the auth object.
130
+ this . auth . defaultServicePath = staticMembers . servicePath ;
131
+
126
132
// Set the default scopes in auth client if needed.
127
133
if ( servicePath === staticMembers . servicePath ) {
128
134
this . auth . defaultScopes = staticMembers . scopes ;
Original file line number Diff line number Diff line change @@ -123,6 +123,12 @@ export class WebRiskServiceV1Beta1Client {
123
123
// Save the auth object to the client, for use by other methods.
124
124
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
125
125
126
+ // Set useJWTAccessWithScope on the auth object.
127
+ this . auth . useJWTAccessWithScope = true ;
128
+
129
+ // Set defaultServicePath on the auth object.
130
+ this . auth . defaultServicePath = staticMembers . servicePath ;
131
+
126
132
// Set the default scopes in auth client if needed.
127
133
if ( servicePath === staticMembers . servicePath ) {
128
134
this . auth . defaultScopes = staticMembers . scopes ;
You can’t perform that action at this time.
0 commit comments