From c403d0a3d83428ff4ce2864dcc8390d02b69cbda Mon Sep 17 00:00:00 2001 From: Daniel Bankhead Date: Fri, 8 Dec 2023 20:39:01 -0800 Subject: [PATCH] fix(SQLAdminFetcher): Use `loginAuth` for `auth` (#275) --- src/sqladmin-fetcher.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sqladmin-fetcher.ts b/src/sqladmin-fetcher.ts index c0613ec..7758293 100644 --- a/src/sqladmin-fetcher.ts +++ b/src/sqladmin-fetcher.ts @@ -81,9 +81,7 @@ export class SQLAdminFetcher { let auth: GoogleAuth; if (loginAuth instanceof GoogleAuth) { - auth = new GoogleAuth({ - scopes: ['https://www.googleapis.com/auth/sqlservice.admin'], - }); + auth = loginAuth; } else { auth = new GoogleAuth({ authClient: loginAuth, // either an `AuthClient` or undefined