googleapis / google-api-nodejs-client

Google's officially supported Node.js client library for accessing Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT (Service Tokens) is included.
https://googleapis.dev/nodejs/googleapis/latest/
Apache License 2.0
11.27k stars 1.91k forks source link

Is the @googleapis/oauth2 package deprecated? #3375

Closed awdr74100 closed 8 months ago

awdr74100 commented 8 months ago

I want to obtain oauth user information through @googleapis/people, but @googleapis/oauth2 v1.0.5 prompts that the package has been deprecated. So which package should I use for oauth behavior?

Also, I would like to ask if the latest way to obtain the user's firstname and lastname is through the people api? I remember that it didn't seem to be needed before.

ddelgrosso1 commented 8 months ago

Hi @awdr74100 You can use https://github.com/googleapis/google-auth-library-nodejs. Hope this helps.