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