Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

update google-auth-libraray to v10 #236

@maxswjeon

Description

@maxswjeon

Please make sure you have searched for information in the following guides.

Link to the code that reproduces this issue. A link to a public Github Repository or gist with a minimal reproduction.

No response

A step-by-step description of how to reproduce the issue, based on the linked reproduction.

  1. Install @google-cloud/local-auth and @googleapis/drive
  2. Follow the snippet in Publish and manage responsders on the form - Check if the form acceps responses from 'Anyone with link'
  3. Get a type error as below
No overload matches this call.
  The last overload gave the following error.
    Type 'OAuth2Client' is not assignable to type 'string | GoogleAuth<AuthClient> | OAuth2Client | BaseExternalAccountClient | undefined'.
      Type 'OAuth2Client' is missing the following properties from type 'OAuth2Client': fetch, addUserProjectAndAuthHeadersts(2769)
api.d.ts(25, 5): The expected type comes from property 'auth' which is declared here on type 'Options'
index.d.ts(12, 25): The last overload is declared here.

A clear and concise description of what the bug is, and what you expected to happen.

@googleapis/drive and many other libraries are up to v10 of google-auth-library but this package is not, creating type errors caused by version differences.

$ pnpm why google-auth-library
Legend: production dependency, optional only, dev only

backend@0.0.1 /home/user/projects/backend (PRIVATE)

dependencies:
@google-cloud/local-auth 3.0.1
└── google-auth-library 9.15.1
@googleapis/drive 19.1.0
└─┬ googleapis-common 8.0.0
  └── google-auth-library 10.4.2
@googleapis/sheets 12.0.0
└─┬ googleapis-common 8.0.0
  └── google-auth-library 10.4.2
firebase-admin 13.5.0
├─┬ @google-cloud/firestore 7.11.6
│ └─┬ google-gax 4.6.1
│   └── google-auth-library 9.15.1
├─┬ @google-cloud/storage 7.17.2
│ └── google-auth-library 9.15.1
└── google-auth-library 9.15.1
google-auth-library 10.4.2

A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **

Version mismatch, breaking all documentations and snippets out there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions