googleapis / googleapis/google-cloud-node

Update Documentation to Simplify Authentication

Open
#7,771 0 comments 1 reaction 1 assignee Claimed by @bcoe View on GitHub
library: google-cloud-node-core priority: p3 type: feature request
Dominant language
TypeScript
Stars
3.2k
Forks
712
Avg merge
2d 3h
Merged PRs (30d)
99

Description

Currently, in numerous places we suggest awaiting `auth.getClient()` rather than directly passing `GoogleAuth`:
- https://googleapis.dev/nodejs/googleapis/latest/sheets/
- https://github.com/googleapis/google-api-nodejs-client/blob/main/samples/jwt.js

`GoogleAuth` has been supported as an `auth` param for a while now:
- https://github.com/googleapis/google-api-nodejs-client/pull/2210

We should update our documentation to simplify and reduce complexity.

Ref: https://github.com/googleapis/google-cloud-node-core/issues/779

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.