-
Notifications
You must be signed in to change notification settings - Fork 2k
Docs don't match types #3790
Copy link
Copy link
Open
Labels
size: sPull request size is small.Pull request size is small.type: docsImprovement to the documentation for an API.Improvement to the documentation for an API.
Description
Activity
Metadata
Metadata
Assignees
Labels
size: sPull request size is small.Pull request size is small.type: docsImprovement to the documentation for an API.Improvement to the documentation for an API.
Please make sure you have searched for information in the following guides.
Documentation Request
The npm docs at: https://www.npmjs.com/package/googleapis#oauth2-client
say to use the googleapi oauth client like:
const oauth2Client = new google.auth.OAuth2( YOUR_CLIENT_ID, YOUR_CLIENT_SECRET, YOUR_REDIRECT_URL );But in VS code that is marked as deprecated in the types, in favor of using a config object. Maybe the docs on npm need to be updated?
Also, your checklist before submitting an issue says to go to this url:
https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/troubleshooting
But when I went there I got a 404.
I also got a 404 for this FAQ link:
https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/faq
At this URL they show using the config object. Maybe link to this from the npm docs?
https://github.com/googleapis/google-auth-library-nodejs