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