Skip to content

Docs don't match types #3790

@patrickjh

Description

@patrickjh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    size: sPull request size is small.type: docsImprovement to the documentation for an API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions