From 49d6681d76908da9214f9c6ceda4e46b3267e2e3 Mon Sep 17 00:00:00 2001 From: mukunda katta Date: Thu, 30 Apr 2026 15:05:40 -0700 Subject: [PATCH] refactor(auth): remove RefreshOptions export --- .../google-auth-library-nodejs/src/auth/oauth2client.ts | 6 ------ core/packages/google-auth-library-nodejs/src/index.ts | 1 - 2 files changed, 7 deletions(-) diff --git a/core/packages/google-auth-library-nodejs/src/auth/oauth2client.ts b/core/packages/google-auth-library-nodejs/src/auth/oauth2client.ts index 138e66c462b5..4d1003f711a5 100644 --- a/core/packages/google-auth-library-nodejs/src/auth/oauth2client.ts +++ b/core/packages/google-auth-library-nodejs/src/auth/oauth2client.ts @@ -546,12 +546,6 @@ export interface OAuth2ClientOptions clientAuthentication?: ClientAuthentication; } -// Re-exporting here for backwards compatibility -export type RefreshOptions = Pick< - AuthClientOptions, - 'eagerRefreshThresholdMillis' | 'forceRefreshOnFailure' ->; - export class OAuth2Client extends AuthClient { private redirectUri?: string; private certificateCache: Certificates = {}; diff --git a/core/packages/google-auth-library-nodejs/src/index.ts b/core/packages/google-auth-library-nodejs/src/index.ts index 5eabfea9c70a..5d7878fe6a33 100644 --- a/core/packages/google-auth-library-nodejs/src/index.ts +++ b/core/packages/google-auth-library-nodejs/src/index.ts @@ -42,7 +42,6 @@ export { GetTokenOptions, OAuth2Client, OAuth2ClientOptions, - RefreshOptions, TokenInfo, VerifyIdTokenOptions, ClientAuthentication,