This takes the metadata auth token in a Google Compute Engine instance as authentication source
gar_gce_auth(service_account = "default", client.id = getOption("googleAuthR.webapp.client_id"), client.secret = getOption("googleAuthR.webapp.client_secret"))
Specify a different service account from the
The Google Project API console's client Id
The Google Project API console's client secret
default or the service account email
Google Compute Engine instances come with their own authentication tokens.
It has no refresh token so you need to call for a fresh token after approx. one hour. The metadata token will refresh itself when it has about 60 seconds left.
You can only use for scopes specified when creating the instance.
If you want to use them make sure their service account email is added to accounts you want to get data from.
If this function is called on a non-Google Compute Engine instance it will return