Skip to content

Commit

Permalink
add gcloud_account() to access token cache key
Browse files Browse the repository at this point in the history
- closes #66
  • Loading branch information
mtmorgan committed Oct 5, 2022
1 parent 1f0b260 commit fc2d308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/gcloud.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
if (identical(Sys.getenv("USER"), "jupyter-user"))
"application-default"

key <- paste0(service, ":", app_default)
key <- paste0(service, ":", app_default, ":", gcloud_account())
now <- Sys.time()
if (is.null(tokens[[key]])) {
tokens[[key]] <- .gcloud_access_token_new(app_default, now)
Expand Down

0 comments on commit fc2d308

Please sign in to comment.