File tree Expand file tree Collapse file tree
packages/google-cloud-redis/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,6 +147,12 @@ export class CloudRedisClient {
147147 // Save the auth object to the client, for use by other methods.
148148 this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
149149
150+ // Set useJWTAccessWithScope on the auth object.
151+ this . auth . useJWTAccessWithScope = true ;
152+
153+ // Set defaultServicePath on the auth object.
154+ this . auth . defaultServicePath = staticMembers . servicePath ;
155+
150156 // Set the default scopes in auth client if needed.
151157 if ( servicePath === staticMembers . servicePath ) {
152158 this . auth . defaultScopes = staticMembers . scopes ;
@@ -1896,6 +1902,7 @@ export class CloudRedisClient {
18961902 return this . cloudRedisStub ! . then ( stub => {
18971903 this . _terminated = true ;
18981904 stub . close ( ) ;
1905+ this . operationsClient . close ( ) ;
18991906 } ) ;
19001907 }
19011908 return Promise . resolve ( ) ;
Original file line number Diff line number Diff line change @@ -147,6 +147,12 @@ export class CloudRedisClient {
147147 // Save the auth object to the client, for use by other methods.
148148 this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
149149
150+ // Set useJWTAccessWithScope on the auth object.
151+ this . auth . useJWTAccessWithScope = true ;
152+
153+ // Set defaultServicePath on the auth object.
154+ this . auth . defaultServicePath = staticMembers . servicePath ;
155+
150156 // Set the default scopes in auth client if needed.
151157 if ( servicePath === staticMembers . servicePath ) {
152158 this . auth . defaultScopes = staticMembers . scopes ;
@@ -1886,6 +1892,7 @@ export class CloudRedisClient {
18861892 return this . cloudRedisStub ! . then ( stub => {
18871893 this . _terminated = true ;
18881894 stub . close ( ) ;
1895+ this . operationsClient . close ( ) ;
18891896 } ) ;
18901897 }
18911898 return Promise . resolve ( ) ;
You can’t perform that action at this time.
0 commit comments