Skip to content

Support AuthClient for auth #777

@danielbankhead

Description

@danielbankhead

Currently the standard auth parameter uses an explicit list of clients that extend AuthClient:

auth?:
      | string
      | OAuth2Client
      | JWT
      | Compute
      | UserRefreshClient
      | BaseExternalAccountClient
      | GoogleAuth;

Src: https://github.com/googleapis/google-api-nodejs-client/blob/main/src/apis/abusiveexperiencereport/v1.ts#L48-L55

In order to support new clients, such as DownscopedClient, auth can be simplified to:

auth?: string | AuthClient | GoogleAuth;

Related:

Metadata

Metadata

Assignees

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions