Open ahmaxed opened 4 years ago
You can use , its worked. const accessToken = await oauth2Client.getAccessToken(); https://stackoverflow.com/questions/53094706/how-do-you-use-google-api-getrequestheaders-to-get-an-oauth2-access-token
not if you are running the LTS version of Node.js. even if it does work it is not updated anymore which means not secure. due to the lack of good update documentation on performing this specific use case it has set me back exponentially on my project. everything is wrote for node 8 which is now deprecated as well. what does a person have to do to get a little upkeep. and note it says on the code lab it was update on feb of 2021, i don't see how when it still uses deprecated unsecure methods and the code lab is exactly the same prior to February
express-oauth2-handlers
module causes theDeprecationWarning: The 'refreshAccessToken' method has been deprecated
error.Additionally the module has been abandoned and need to be replaced with an alternative solution.
GoogleCloudPlatform/express-oauth2-handlers#10