access

Directly Using Access Token by googleapis for Node.js

Gists This sample script is for directly using the refreshed access token by googleapis for Node.js. When oauth2Client.refreshAccessToken((err, tokens) => {}); is used to retrieve the refreshed access token, the following error occurs. DeprecationWarning: The refreshAccess Token method has been deprecated, and will be removed in the 3.0 release of goo gle-auth-library. Please use the getRequestHeaders method instead. It is required to use getRequestHeaders(). But I couldn’t find the sample script using getRequestHeaders().