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.28k stars 1.91k forks source link

OAuth getToken: Invalid Request. #3351

Closed amit-ksh closed 9 months ago

amit-ksh commented 9 months ago
sverp commented 9 months ago

await only works in an async function.

amit-ksh commented 9 months ago

Closing this issue: I was not passing the redirectUri to the exported oAuth2Client object.