Opteo / google-ads-api

Google Ads API client library for Node.js
https://opteo.com
MIT License
270 stars 90 forks source link

Access token handling #432

Open dhpwd opened 1 year ago

dhpwd commented 1 year ago

Hi @wcoots,

I tried finding an email for you but resorting to raising an issue here instead (sorry)

Few questions/clarifications around the access token:

  1. Does the library store the access_token or default request a new one via the refresh_token for each request?
  2. We're using the library in a serverless/lambda-like environment rn meaning even if (1) is yes, I'm guessing the library would end up having to request a new one each time anyway due to each process being short-lived – correct?
  3. If (2) is true, we could store the access_token ourselves but... a. Is there a way to retrieve the token received? b. Is there a way to set the token on initialisation?

Thanks!

Dan

rmarmitt commented 1 year ago

Bump