Closed davidski closed 1 year ago
That method is only intended for regular "user" tokens.
If you're using a service account token, just give that to each package.
googledrive::drive_auth(path = Sys.getenv("GOOGLE_TOKEN"))
googlesheets4::gs4_auth(path = Sys.getenv("GOOGLE_TOKEN"))
Ah ha! Thanks for the help. That works a treat.
I'm having problems following the advice under: https://googlesheets4.tidyverse.org/articles/drive-and-sheets.html to use a Google Service Account token to auth into Googlesheets. Under
googlseheets4
1.0.1 andgoogledrive
2.0.0, the returned token from googledrive seems to be rejected by googlesheets.