Skip to content

Commit

Permalink
fix(SQLAdminFetcher): Use loginAuth for auth (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbankhead authored Dec 9, 2023
1 parent c84e20a commit c403d0a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sqladmin-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ export class SQLAdminFetcher {
let auth: GoogleAuth<AuthClient>;

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
Expand Down

0 comments on commit c403d0a

Please sign in to comment.