nodejs googleapis, authClient.request is not a function
问题 I am creating an oauth2client in one function like so and returning it. I actually do pass in the clien id, secret, redirect url, and credentials. Those are all correct from what I have checked. var OAuth2 = google.auth.OAuth2; var oauth2Client = new OAuth2(CLIENT_ID, CLIENT_SECRET, REDIRECT_URL); ... credentials = { access_token: accessToken, refresh_token: refreshToken }; oauth2Client.setCredentials(credentials); I then do this in the function where the oauth2client object is returned: var