Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
INT-7879: remove unnecessary type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Mich committed Jun 5, 2023
1 parent 9231923 commit c1d6961
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/google-cloud/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from '@jupiterone/integration-sdk-core';
import { retry } from '@lifeomic/attempt';
import { GaxiosError, GaxiosResponse } from 'gaxios';
import { BaseExternalAccountClient, CredentialBody } from 'google-auth-library';
import { CredentialBody } from 'google-auth-library';
import { accesscontextmanager_v1, google } from 'googleapis';
import pMap from 'p-map';
import { IntegrationConfig } from '../types';
Expand Down Expand Up @@ -69,10 +69,9 @@ export class Client {
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
});

const client =
(await auth.getClient()) as unknown as BaseExternalAccountClient;
const client = await auth.getClient();
await client.getAccessToken();
return client as unknown as accesscontextmanager_v1.Options['auth'];
return client as accesscontextmanager_v1.Options['auth'];
}

async getAuthenticatedServiceClient(): Promise<
Expand Down

0 comments on commit c1d6961

Please sign in to comment.