diff --git a/src/getClientToken.ts b/src/getClientToken.ts index b34892f..0f2bfc8 100644 --- a/src/getClientToken.ts +++ b/src/getClientToken.ts @@ -1,11 +1,11 @@ -import { DesktopIAPOptions, ClientFetcher } from "./types"; +import { DesktopIAPOptions, ClientFetcher, Fetcher } from "./types"; const oauthTokenBaseUrl = new URL("https://www.googleapis.com/oauth2/v4/token"); export async function getClientToken( options: DesktopIAPOptions, refreshToken: string, - fetcher: ClientFetcher = fetch, + fetcher: ClientFetcher | Fetcher = fetch, ): Promise { const body = { client_id: options.clientId,